Skip to content

Python tools (JSON, YML configs, metaclasses, decorators).

Notifications You must be signed in to change notification settings

dariusz-piekarz/pytools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. sqlserver: The sqlserver file contains classes helping in connections to SQL Server and MS Access.

  6. postgres: The postgres file has a connector class to PgAdmin4.

  7. 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.