Project Documentation
Table of Contents
Overview
This package is a fork of etl-utilities by [@magicjedi90]. Maintained by Eiji.
This project provides a comprehensive Data ETL (Extract, Transform, Load) and data manipulation framework using Python. It integrates with databases using SQLAlchemy and provides tools for data parsing, cleaning, loading, validating, and more. The project is structured with classes that encapsulate different functionalities.
Classes
Connector
The Connector class handles creating connections to various types of databases (MSSQL, PostgreSQL, MySQL) using SQLAlchemy. It provides static methods for obtaining both trusted and user connections.
Key Methods:
get_mssql_trusted_connectionget_mssql_user_connectionget_postgres_user_connectionget_mysql_user_connection- Instance methods for returning database connections based on stored configuration.
Loader
The Loader class is responsible for loading data from a Pandas DataFrame into a database. It manages the insertion process, ensuring data is inserted efficiently and effectively with the use of SQLAlchemy and custom logging.
MySqlLoader
A slight extension of the Loader class specifically for MySQL databases. It provides overrides to manage MySQL-specific data types and query formatting.
MsSqlLoader
A specialized loader for loading data into MSSQL databases with additional functionalities like fast insertions using bulk methods.
Parser
The Parser class consists of a series of static methods dedicated to parsing various data types—boolean, float, date, and integer. These methods are essential for data type conversion and consistency across the application.
Cleaner
The Cleaner class provides methods for sanitizing and formatting data in a DataFrame. It includes functions for setting column name casing conventions, cleaning various types of data, and preparing data for reliable analysis and insertion.
Creator
This class deals with generating SQL CREATE TABLE statements for different databases like MSSQL and MariaDB. The query generation considers data types deduced from DataFrame content.
Analyzer
The Analyzer class assesses DataFrame characteristics and helps identify unique columns, column pairs, empty columns, and more. It aids in generating metadata for data types, which is crucial for creating or validating schemas.
Validator
The Validator class ensures DataFrame compatibility with the target database table structure by checking for extra columns, validating data types, and ensuring that no data truncation will occur during upload.
MsSqlUpdater
A class designed for constructing SQL statements for operations like mergers, updates, inserts, and appends to manage data transitions between tables efficiently.
Logging
The project uses a singleton Logger class with colored output format for console logging. This helps in debugging and understanding the flow by logging messages at various severity levels.
Additional Utilities
- Parsing and Cleaning Functions: Utility functions for parsing and cleaning various data types.
- Standardization: A set of utility functions to standardize and clean DataFrame column names and content.
Release files for etl-utilities-plus 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| etl_utilities_plus-1.0.7.tar.gz | 41.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| etl_utilities_plus-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.0 kB
Release files / etl_utilities_plus-1.0.7.tar.gz
| Download URL | etl_utilities_plus-1.0.7.tar.gz |
|---|---|
| Size | 41.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
089c53f76964ebec44b8bee0af76aaf3c29bce57ca5575cac422758bf239b885
|
|
BLAKE2b-256 checksum How to use checksums |
8420750b2da4c46f88a9e80b625723f7c6739963840d143d59f7f1d666420ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2025.
Transparency logRelease files / etl_utilities_plus-1.0.7-py3-none-any.whl
| Download URL | etl_utilities_plus-1.0.7-py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb734d29ddaeb3e8036fa2750edc132e3f74faeea942a5b91175b55e5b684e58
|
|
BLAKE2b-256 checksum How to use checksums |
b968f8834a05de6c4bf8930a7a38b700767ed8b3b0f5063fa76f1336275184ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2025.
Transparency log