Skip to main content

Agnostic SQLAlchemy helper with engine registry, safe transactions, and pandas I/O.

Project description

anydbx

Agnostic SQLAlchemy helper with engine registry, safe transactions, and pandas I/O.

from pathlib import Path
from anydbx import load_config, fetch_df, write_df, execute

cfg = load_config(Path("credentials.cfg"), "wms")  # INI section

# DDL / DML
execute("CREATE TABLE t (id INT)", name="wms", cfg=cfg)

# pandas -> SQL
import pandas as pd
df = pd.DataFrame({"id": [1,2,3]})
write_df(df, "t", name="wms", cfg=cfg)

# SQL -> pandas
rows = fetch_df("SELECT * FROM t", name="wms", cfg=cfg)

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

anydbx-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

anydbx-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file anydbx-0.1.1.tar.gz.

File metadata

  • Download URL: anydbx-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for anydbx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f01d6d36b5f7acce6891cf393290350cd0dd1d6f83529b30dee9cd772d99d2e3
MD5 012cdb8acacc4cac6c34456fa1470eff
BLAKE2b-256 7e65e405a857ab733d9c96a196162fe75d5bbaaa22f6fd2187a8ca73e6ab66ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydbx-0.1.1.tar.gz:

Publisher: publish.yml on nargotik/anydbx

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

File details

Details for the file anydbx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: anydbx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for anydbx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17cbb9750e1e9d63a169cd7b51c429bc5f0395b54869d8c697c5caf24affd37d
MD5 fdc21d2a97d1c51db476768d2711c76a
BLAKE2b-256 2ab92064716aea12c8f46a3f82d0e44ef7b8178824ec891d8eac71114227d903

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydbx-0.1.1-py3-none-any.whl:

Publisher: publish.yml on nargotik/anydbx

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