Utility Toolkit is a comprehensive Python package that provides a collection of tools for AWS operations, database handling (PostgreSQL and SQLite), and general utility functions.
You can install Utility Toolkit using pip:
pip install utility_toolkit
- AWS Tools: Functions for interacting with various AWS services
- PostgreSQL Handler: Easy-to-use interface for PostgreSQL database operations
- SQLite Handler: Simplified SQLite database management
- General Tools: A collection of utility functions for common tasks
-
Version 0.2.2 (Date: 2025-01-17)
- Fix issue in postgresql handler
- Enhance functions in general tools.
-
Version 0.2.1 (Date: 2024-10-21)
- Fix import issue.
-
Version 0.2.0 (Date: 2024-10-21)
- Remove log decoration to let user log as needed.
-
Version 0.1.9 (Date: 2024-10-11)
- Improved logs.
- add more functions to global_tools.
- add sonarqube to the project.
-
Version 0.1.8 (Date: 2024-10-04)
- Improved error handling in PostgreSQL and SQLite handlers.
- Introduced new utility functions for dynamodb handler.
- Enhance logging capabilities for better debugging.
- Performance optimizations and bug fixes.
Here are some quick examples of how to use Utility Toolkit:
python from utility_toolkit import aws_tools, postgresql_handler, sqlite_handler, general_tools
# AWS example
s3_content = aws_tools.get_s3_file_content('s3://my-bucket/my-file.txt')
# PostgreSQL example
with postgresql_handler.PostgreSQLConnection('my_db', 'user', 'password', 'localhost') as conn: results = conn.execute_query('SELECT * FROM my_table')
# SQLite example
with sqlite_handler.SQLiteConnection('my_database.db') as conn: conn.execute_query('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)')
# General tools example
general_tools.create_directory_if_not_exists('my_new_directory')
For more detailed usage instructions, please refer to the documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
6. **Choose a License**
Choose an appropriate license (e.g., MIT License) and add it to the LICENSE file.
7. **Create .gitignore**
Create a `.gitignore` file in the root directory:
pycache/ *.py[cod] *.so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *.egg .venv/