Skip to main content

macss-modular-api-postgres

Official MACSS Postgres integration package for Python.

Quick start

from modular_api_postgres import DbClient, DbCommand, DbCommandKind, DbConnectionSettings

settings = DbConnectionSettings.from_environment()

client = DbClient(
    settings=settings,
    session_provider=my_session_provider,
    command_executor=my_command_executor,
    transaction_runner=my_transaction_runner,
)

result = client.scalar(
    DbCommand(
        kind=DbCommandKind.SCALAR,
        text="select count(*) from users",
        label="users.count",
    )
)

if result.is_success:
    print(result.value.value)
else:
    print(result.failure.message)

See example/example.py for a complete in-memory wiring sample.

What this package provides

  • normalized Postgres connection defaults and redacted summaries
  • engine-agnostic DbClient, DbRepository, and transaction contracts
  • explicit lease ownership semantics for package-owned and application-owned sessions
  • health contributor and GraphQL support bundle for higher-level integrations
  • the application supplies the driver binding (adapter) for its chosen engine and driver

This package is contracts-only by design and will never ship a driver binding; you choose your engine and driver and provide the adapter. See ADR-0004.

Metadata

Release files for macss-modular-api-postgres 0.7.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 macss-modular-api-postgres 0.7.1
File Size Uploaded Provenance Actions
macss_modular_api_postgres-0.7.1.tar.gz 20.6 kB Without provenance Details for macss_modular_api_postgres-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for macss-modular-api-postgres 0.7.1
File Interpreter ABI Platform Actions
macss_modular_api_postgres-0.7.1-py3-none-any.whl Python 3 none any Details for macss_modular_api_postgres-0.7.1-py3-none-any.whl

Total release size: 31.1 kB

Release files / macss_modular_api_postgres-0.7.1.tar.gz

Download URL macss_modular_api_postgres-0.7.1.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
08f820e2195cb184167db05b655b4f037fcd5311e5f07b5f4e8e1741dbae23cf
BLAKE2b-256 checksum
How to use checksums
31aa19d7dfc1e94cd99e9731a124b90187a370b917b88c074fb63d4323043495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / macss_modular_api_postgres-0.7.1-py3-none-any.whl

Download URL macss_modular_api_postgres-0.7.1-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d595260527c9fd460b4970068fdb97a78f26de18ab178bd4065072f19f0de99
BLAKE2b-256 checksum
How to use checksums
319ccc19d5226acbb2646b4bd7e38e9858904cca4555cb59f72c89f772408e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for macss-modular-api-postgres 0.7.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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