Skip to main content

Zayt Contrib

Commons libraries for the Zayt Web Framework.

Integrates libraries like SQLAlchemy, Redis, emcache and Jinja2 into the Zayt Framework.

SQLALchemy Example

# settings.toml
modules = [
    "zayt_contrib.sqlalchemy"
]

[sqlalchemy.connections.default]
url = "${POSTGRES_URL:postgresql+asyncpg://localhost:5432/test}"
[sqlalchemy.connections.default.options]
pool_size = 10
# service.py

from typing import Annotated

from sqlalchemy import select, text
from sqlalchemy.ext.asyncio import AsyncEngine
from zayt import di


@di.service(scoped=True)
class DBService:
    engine: Annotated[AsyncEngine, di.Inject]

    async def db_version(self) -> str:
        async with self.engine.connect() as conn:
            return await conn.scalar(text("SELECT version()"))

Metadata

Release files for zayt-contrib 0.2.0

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

Source distribution (sdist)

Source distribution for zayt-contrib 0.2.0
File Size Uploaded Provenance Actions
zayt_contrib-0.2.0.tar.gz 21.8 kB Without provenance Details for zayt_contrib-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zayt-contrib 0.2.0
File Interpreter ABI Platform Actions
zayt_contrib-0.2.0-py3-none-any.whl Python 3 none any Details for zayt_contrib-0.2.0-py3-none-any.whl

Total release size: 34.7 kB

Release files / zayt_contrib-0.2.0.tar.gz

Download URL zayt_contrib-0.2.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e344f4b9c19223219568dcfbcd6bf02640268bd41a65308faae9950c1bc954fb
BLAKE2b-256 checksum
How to use checksums
a7bff6ee0eef778de6a4bd2a069625f30c4d6f898f062866bba391a96626ecee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.29.7 CPython/3.15.2 Linux/7.0.0-42-generic

Release files / zayt_contrib-0.2.0-py3-none-any.whl

Download URL zayt_contrib-0.2.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa11e8ad0817df4978549daebf9542e428c5f78055f8d31b8b55bbba4dda567f
BLAKE2b-256 checksum
How to use checksums
47443534c352fc51c0466bf25d7efe75bac3c2bb83573e2d6bf84efd14531fda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.29.7 CPython/3.15.2 Linux/7.0.0-42-generic

Security for zayt-contrib 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No 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