Skip to main content

A comprehensive toolkit for AWS operations, database handling, and general utilities.

Project description

Utility Toolkit

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.

Installation

You can install Utility Toolkit using pip:

pip install utility_toolkit

Features

  • 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

Changes and What's New

  • Version 0.2.3 (Date: 2025-06-10)

    • Add new functions to DynamoDB to retrieve all records from a table.
    • Enhance PostgreSQL handler with insert many and copy from CSV functions.
    • Improve SQS handler by adding more connection pool options.
  • 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.

Usage

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.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utility_toolkit-0.2.3.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utility_toolkit-0.2.3-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file utility_toolkit-0.2.3.tar.gz.

File metadata

  • Download URL: utility_toolkit-0.2.3.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for utility_toolkit-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fe236df6f3c893a40e370e28d10149ade0655ce9d9a12bd7ba2dd5b5ba9c8340
MD5 f80152979982936c0b253e5a9d267e44
BLAKE2b-256 717246ef7b84610d960b378b2570b955aac6b81717778a52a4ca2573576f5c00

See more details on using hashes here.

File details

Details for the file utility_toolkit-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for utility_toolkit-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7671fef56595f682c29d2f54b428a2e6183b9fbf3e84b8459cd6cc5df7f5cef3
MD5 ce70c00493439f5905d5ddd296e3e0be
BLAKE2b-256 b59bdd3938bdde6249110c7dc919c2f630700713152b138b93dcfff7174d1e35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page