Skip to main content

A unified, high-performance Python package for bulk-loading pandas DataFrames into diverse SQL databases and data warehouses.It provides a single, configuration-driven API that abstracts the most efficient native bulk-loading methods (e.g., `COPY`, `BULK INSERT`) for each backend.

Project description

py-universal-loader

A unified, high-performance Python package for bulk-loading pandas DataFrames into diverse SQL databases and data warehouses.It provides a single, configuration-driven API that abstracts the most efficient native bulk-loading methods (e.g., COPY, BULK INSERT) for each backend.

CI PyPI version

Installation

You can install py-universal-loader from PyPI:

pip install py-universal-loader

Usage

Here's a simple example of how to use py-universal-loader to load a pandas DataFrame into a SQLite database:

import pandas as pd
from py_universal_loader import get_loader

# Sample DataFrame
data = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data)

# Configuration for SQLite
config = {
    "db_type": "sqlite",
    "db_path": ":memory:",
}

# Get the loader and load the data
loader = get_loader(config)
loader.connect()
loader.load_dataframe(df, "my_table")
loader.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_universal_loader-0.2.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_universal_loader-0.2.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file py_universal_loader-0.2.0.tar.gz.

File metadata

  • Download URL: py_universal_loader-0.2.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_universal_loader-0.2.0.tar.gz
Algorithm Hash digest
SHA256 831f4195d0943cab432db5460def872de1f2a360066262dc24019baa7fb81428
MD5 fe4f440d8821ba2174879bd5ad6cf5ed
BLAKE2b-256 3627b6f599482872770a39a4fa7b548b0a87be677a9d1b93548a6535e7dbd664

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_universal_loader-0.2.0.tar.gz:

Publisher: publish.yml on CoReason-AI/py_universal_loader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_universal_loader-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_universal_loader-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd9b7b1a5424cffc878b3a1813c6aa1dc81d9d622b00e00a682b5f0af3d8cb4
MD5 ca7282b2b1107dca106da33ed9cf86b4
BLAKE2b-256 5ba1bd1a2f796e8ff1c0adb53b2403852b64c2c22f06047a1721d4b3c3425033

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_universal_loader-0.2.0-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/py_universal_loader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page