pytools Module Overview
The pytools
module is a Python package currently under development (however is ready to be installed). It aims to provide a collection of useful functionalities for various purposes. Presently, it comprises seven main files:
-
config: This file contains tools related to the creation and management of configuration files. It offers functionality to handle both YAML and JSON file formats efficiently.
-
vectorization: The
vectorizations
file hosts decorators designed to generalize their actions from scalar values to different types of values. These decorators are versatile and can be applied to various data structures such as lists, pandas DataFrames, and more. -
metaclasses: The
metaclass
file houses a set of metaclasses and decrators tailored to address specific scenarios. These include metaclasses for controlling instantiation, decorators for logging enhancements, method call ordering, and tracking method execution time. -
concurrency: The
concurrency
module encompasses decorators and classes facilitating asynchronous, threading, and multiprocessing approaches for executing your code. One notable application is handling multiple CSV files, converting them into Pandas DataFrames, and saving DataFrames to CSV files. -
sqlserver: The
sqlserver
file contains classes helping in connections to SQL Server and MS Access. -
postgres: The
postgres
file has a connector class to PgAdmin4. -
apiconnector: The
apiconnector
file has functions that help in serving POST, GET, PUT, PATCH and DELETE requests based on asynchonic client and optionally basic authentication.
Each of these files serves a distinct purpose and contributes to the overall functionality and utility of the pytools
module. As development progresses, additional features and enhancements are expected to be incorporated into the module.