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.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.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

utility_toolkit-0.2.1-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utility_toolkit-0.2.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for utility_toolkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c4f4b668e0a904d564ef35a6217d53151df72418400e39df4259a0f99e804fc6
MD5 73b781ad356fc00c335d7e8afb451c8e
BLAKE2b-256 a8e14575ad886ce30d12fcb6cc5655a2cfbf0b2b5e05b650375252b53d39fade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for utility_toolkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f81e038e2566161ed4e71747c76b5cf57ac6f4a6bcf0c40ed3358898cfeb7a4
MD5 270c23b2579d4755fb4bdf8072d939fe
BLAKE2b-256 d5c31cb1683f04ba67c71bd43bb4456150d35f19cfc1d9d63e313cefaf3d11e6

See more details on using hashes here.

Supported by

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