Autogenix ETL Automation
Overview
Autogenix ETL Automation is a Python package designed to simplify and automate Extract, Transform, and Load (ETL) processes. With built-in modules for loading and processing CSV and JSON data, this package provides essential tools for efficient data handling and transformation.
Features
- CSV Loader: Easily load CSV files into Pandas DataFrames with customizable options.
- JSON Loader: Automatically detect the appropriate orientation for JSON data and load it into DataFrames.
- Dynamic Orient Detection: Analyze the structure of JSON data to determine the optimal loading strategy.
Installation
pip install autogenix-etl-automation
Requirements
- Python >= 3.6
- pandas
Usage
CSV Loader
The CsvLoader function reads a CSV file and returns the first n rows.
Example
from autogenix_etl.CsvLoader import CsvLoader
# Load a CSV file and return the first 5 rows
df = CsvLoader("data.csv")
print(df)
# Load a CSV file with custom delimiter and specific columns
df = CsvLoader("data.csv", sep=';', usecols=['name', 'age'])
print(df)
Parameters
- csv_file_name: The name or path of the CSV file.
- n: Number of rows to return (default is 5).
- kwargs: Additional arguments passed to
pandas.read_csv().
JSON Loader
The JSONLoader function reads JSON data and returns a DataFrame.
Example
from autogenix_etl.JSONLoader import JSONLoader
# Load JSON data and return the first 5 rows
df = JSONLoader("data.json")
print(df)
Parameters
- file_path: Path to the JSON file.
- kwargs: Additional arguments passed to
pandas.read_json().
JSON Orient Detection
The package intelligently detects the correct orientation for JSON data (records, split, index, columns, or values) using the determine_orient function.
Example
from autogenix_etl.determine_orient import determine_orient
# Example JSON data
json_data = [
{"name": "John Doe", "age": 30, "city": "New York"},
{"name": "Jane Smith", "age": 25, "city": "Chicago"}
]
orient = determine_orient(json_data)
print(f"Detected orient: {orient}")
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Rishikeswaran S
Email
Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue.
Acknowledgments
Special thanks to the open-source community for inspiration and support.
Release files for autogenix-ETL-automation 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autogenix_etl_automation-0.1.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autogenix_ETL_automation-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / autogenix_etl_automation-0.1.0.tar.gz
| Download URL | autogenix_etl_automation-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e60486bbb72e521671816f6ebda519f6425d07d5e264ff8be7aa9fbe4548f9c
|
|
BLAKE2b-256 checksum How to use checksums |
dc64084fb4afaa811992c858413af178aad1a4f0e2d7099cc0ffbc9e921a5b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Release files / autogenix_ETL_automation-0.1.0-py3-none-any.whl
| Download URL | autogenix_ETL_automation-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ab77a88597d9a6efec85ee86c6c9e40afb74fb9424d09596916cf45b29080ed
|
|
BLAKE2b-256 checksum How to use checksums |
b0431c8b8482c7ad0f3fea56e2d57e8638dcc76147dba40f8d8701251f820047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|