Skip to main content

Easy Data Loader 🚀

PyPI version License: MIT Downloads

Easy Data Loader is a flexible, modular Python library designed to streamline ETL (Extract, Transform, Load) processes between various file data sources (csv, xlsx, parquet, orc) and databases (MSSQL, PostgreSQL and others).

The documentation guide is the canonical onboarding path. It is also the source for the self-paced presentation outline in docs/presentation-outline.md.

✨ Key Features

  • Declarative Configuration: Manage connections and pipelines through simple python files and .env resources.
  • Integrated CLI: Initialize a standardized project structure with a single command.
  • Custom Transformation Hooks: Inject your own Pandas transformation logic directly into the pipeline execution.
  • Performance Optimized: Built-in support for chunked loading and writing to handle large datasets efficiently.
  • Extensible Architecture: Uses a Factory Pattern for database connectors, making it easy to support new drivers.

📦 Installation

Install directly via pip or uv:

pip install easy_data_loader
uv add easy_data_loader

🚀 Getting Started

  1. Initialize a new project structure to generate template configurations:
    easy-data-loader init
    
  2. Review the generated config/ folders for sample resources and pipelines.
  3. List all discovered resources and pipelines:
    easy-data-loader list
    

✔️ Generic concepts

easy_data_loader uses resources as a way to define a file or a database. The resouces can represent either a source or a destination making posible the folowing ETL scenarios: file -> file, file -> database, database -> file, database -> database.

easy_data_loader project initializer will create the predefined folder structure /config/resources. Resource .env files are detected from their contents: database resources define CONN_SERVER_TYPE, while folder resources define FOLDER_PATH.

Individual file definitions are regular Python objects in modules under /config/resources. They are declared as a flat dictionary, independent of any folder resource - the folder is only chosen when a pipeline references the file:

FILES = {
    "example_file": FileEntry(file_type=FileType.CSV, file_name="data"),
}

A pipeline (or resource_access helper) references the file by combining a folder resource name with the file key: "example_folder.example_file".

A secondary predefined folder /config/pipelines will contain the pipeline definition files, which are regular Python files. There are 3 types of pipelines that can be defined:

  • LoadPipeline the main pipeline type which transports data from source to destination
  • ProcedurePipeline a pipeline dedicated for executing stored procedures inside a database
  • OrchestratorPipeline a pipeline that can execute a group of pipelines sequentialy

LoadPipeline

In order to define a LoadPipeline we must use the BasePipelineDefinition from easy_data_loader as depicted in the example pipelines created by the initializer. pipeline_name is never set by the user - it is derived automatically from the pipeline's file name at load time. In the simplest form there are only a few mandatory parameters:

  • source : str - the file name (without extension) coresponding to the desired resource to be the data source
  • destination : str - the file name (without extension) coresponding to the desired resource to be the data destination

If either the source or destination are a database then additional parameters become mandatory:

  • source_sql : str - can be a table name or a specific query in the SQL dialect of the source database flavor
  • destination_table : str - table name where the data will be inserted

There are many other aspects of the pipeline that can be defined:

  • audit : str - the pipeline has a built in audit functionality, it records certain information after the pipeline completes in a SqlLite database. If the user desires, the same information can be recorded in a database resource
  • validator: Pydantic BaseModel - the data read from the source resource can be validated using an arbitrary defined Pydantic model before is written to destination
  • columns : Dict[str, ColumnDefinition] - this parameter is used for strict control on how the data is written to destination; it has the dual purpose of renaming the columns and also define explicitly the data types (mainly for inserting into a database table); the ColumnDefinition is constructed with an optional target_name: str for renaming columns and / or a data_type : SqlAlchemy Type thus controling column data types, lenghts, precision etc.
  • read_parameters : Dict[str, Any] and write_parameters : Dict[str, Any] - these parameters control how the data is being read or written from source to destination and provide an easy way to use special delimiters for files, drop and recreate the database table, etc. easy_data_loader is using pandas as the transport layer therefore the read and write parameters will be passed to the coresponding read and write functions supported by pandas.
  • the pipeline has a set of predefined hooks allowing the execution of functions at specific moments during the execution: file_pre_process : Callable - executed before the file is read into the pandas DataFrame (e.g. unzip the file); transform : Callable - perform data transformation over the data already in the pandas DataFrame (requires pandas methods); file_post_process : Callable - after the pipeline completes and the data is written to the destination perform post processing on the source file (e.g. move the file to another folder)

ProcedurePipeline

This secondary pipeline type is responsible for executing one or more stored procedures inside a database. To define one we need to use the ProcedureDefinition with the following parameters (pipeline_name is derived automatically from the file name, same as LoadPipeline):

  • audit : str, optional - database resource name where the audit info will be recorded
  • resource : str - database resource name where the stored procedure(s) wil be executed
  • procedures : List[tuple(str, Optional[Dict[str, Any]])] - list of one or more stord procedures along with optional procedures parameters as dictionaries

OrchestratorPipeline

This pipeline type is responsible of executing sequentially a set of pipelines, LoadPipelines and / or ProcedurePipelines. Very simple to define using the OrchestratorDefinition (pipeline_name is derived automatically from the file name) with:

  • pipelines : List[str] - list of pipelines to execute sequentially
  • fail_fast : bool, Default True - if any of the pipelines fail the rest of the pipelines in the list do not get executed

Metadata

Release files for easy-data-loader 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-data-loader 0.2.4
File Size Uploaded Provenance Actions
easy_data_loader-0.2.4.tar.gz 54.1 kB With provenance Details for easy_data_loader-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easy-data-loader 0.2.4
File Interpreter ABI Platform Actions
easy_data_loader-0.2.4-py3-none-any.whl Python 3 none any Details for easy_data_loader-0.2.4-py3-none-any.whl

Total release size: 97.8 kB

Release files / easy_data_loader-0.2.4.tar.gz

Download URL easy_data_loader-0.2.4.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b733aa6601b25578190a9b366fd626645b6f45219dbf2643095619898cd9f4f1
BLAKE2b-256 checksum
How to use checksums
73e30080caf9447f0558b87add120fbc70a5c4cd6e67f9d7722354ef4dbfb463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / easy_data_loader-0.2.4-py3-none-any.whl

Download URL easy_data_loader-0.2.4-py3-none-any.whl
Size 43.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f837adb2246345b0abc0fc2fdb84cb72863de9c0dddea38dcce6bae1514fc2a
BLAKE2b-256 checksum
How to use checksums
1b8454d856366a0623f019061a5130ff8f094c7f6ef5ff5761144788da25e5b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for easy-data-loader 0.2.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for easy_data_loader-0.2.4.tar.gz

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 Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page