Skip to main content

dap-database

Shared SQLAlchemy plumbing for DAP (#778 Phase 1). Import path: dap_database.

One home for the pieces previously duplicated between dap_engine.persistence.db (sync) and dap_engine.auth.db (async):

  • URL/dialect helpers — detect_dialect, normalize_pg_prefix, pg_sync_url, pg_conn_string, redact_database_url, async_url_for
  • Raw engine factories — create_sqlite_engine (WAL pragmas, busy timeout), create_postgresql_engine (psycopg v3, pre-ping, recycle), create_async_engine_for_url
  • Session factories — make_session_factory, make_async_session_factory, session_scope

What deliberately stays out

  • ORM models and migrations — schema ownership stays with the engine (dap_engine.persistence). The factories here create no tables.
  • DB drivers — aiosqlite / psycopg are consumer dependencies; this package only requires sqlalchemy.
from dap_database import create_sqlite_engine, make_session_factory, session_scope

engine = create_sqlite_engine("/data/state.db")
factory = make_session_factory(engine)
with session_scope(factory) as session:
    ...

Metadata

Release files for dap-database 0.4.1

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

Source distribution (sdist)

Source distribution for dap-database 0.4.1
File Size Uploaded Provenance Actions
dap_database-0.4.1.tar.gz 7.8 kB With provenance Details for dap_database-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dap-database 0.4.1
File Interpreter ABI Platform Actions
dap_database-0.4.1-py3-none-any.whl Python 3 none any Details for dap_database-0.4.1-py3-none-any.whl

Total release size: 14.7 kB

Release files / dap_database-0.4.1.tar.gz

Download URL dap_database-0.4.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1a225b2f7662ad78a0241af82dd45234c1f1f398c87589f4bfb023277dc25904
BLAKE2b-256 checksum
How to use checksums
aff2c8c918209a8b6d2e376f04ba3906b3dcc33b7ea84a6b459aae82a95dd257
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 28, 2026.

Transparency log

Release files / dap_database-0.4.1-py3-none-any.whl

Download URL dap_database-0.4.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b06d193172fbee4e4508716dc7483f2ff8961c9da6eaa8d846632913cf4a37f4
BLAKE2b-256 checksum
How to use checksums
8b1abebff3b5578019dc04d8ae856c00d31693b96755397e05187e7b30abf7b6
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 28, 2026.

Transparency log

Security for dap-database 0.4.1

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 dap_database-0.4.1.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 28, 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.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files Full provenance

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