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.3.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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anydbx-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d4322c9ad3e326335f114fe0f2780bb370f9205c78ddb4737a0af459528882c0
MD5 3eeff8b6c716678f016930dc1fa9f7d5
BLAKE2b-256 d99933f8a5cea6a59008a74b7a64ef3694f91851e1ef32448b36cfc1e5459e8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydbx-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: anydbx-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a44fc57dcfb7626d9ff3bd0a81b720e266f62f2a2371ef48b71972bdd76008b
MD5 b50169cd3f9e7c39bc74cc0d78f5425c
BLAKE2b-256 cabe52680a04d45ff03f1199f7e9cf916a4a4f93947e5d2246b08064871796d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydbx-0.1.3-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