Skip to main content

macss-modular-api-sqlserver

Official MACSS SQL Server integration package for Python.

Quick start

from modular_api_sqlserver 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 SQL Server 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.

Release files for macss-modular-api-sqlserver 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-sqlserver 0.7.1
File Size Uploaded
macss_modular_api_sqlserver-0.7.1.tar.gz 10.7 kB Details

Built distribution (wheel)

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

Total release size: 16.9 kB

Release files / macss_modular_api_sqlserver-0.7.1.tar.gz

Download URL macss_modular_api_sqlserver-0.7.1.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
57f3529455758e1400da32efd2bdbc92a3d91790baae7661b0a3a60c1b3a9604
BLAKE2b-256 checksum
How to use checksums
14f4514ab234ad643a30136ea8ec24e8737301e669f926593dd444a155efab4e
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_sqlserver-0.7.1-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.7

2 release files

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