Skip to main content

Lifespan stack utilities for FastAPI

Project description

csrd-lifespan

Composable lifespan stack for FastAPI applications.

Package: csrd.lifespan · Import: from csrd.lifespan import lifespan_stack

What's included

  • lifespan_stack — register multiple async context managers as a single FastAPI lifespan
  • Merges yielded state dicts from all lifespan functions
  • Supports nested lists of lifespan functions

Installation

uv pip install "csrd-lifespan @ git+ssh://git@github.com/csrd-api/fastapi-common.git#subdirectory=packages/lifespan"

Dependencies

None (Tier 1 — standalone)

Project details


Release history Release notifications | RSS feed

This version

0.5.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csrd_lifespan-0.5.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csrd_lifespan-0.5.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file csrd_lifespan-0.5.1.tar.gz.

File metadata

  • Download URL: csrd_lifespan-0.5.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_lifespan-0.5.1.tar.gz
Algorithm Hash digest
SHA256 3ab42a2ae42050a9c232193be21be8115631949bcf6f881a4fede61ef9f5c56c
MD5 2a12f7393290f4d0ce497630f604171a
BLAKE2b-256 b38f306aff88e57b2cdc6d690207726b4f4400b2dade42efee927ac1cc63a89d

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_lifespan-0.5.1.tar.gz:

Publisher: release.yml on csrd-api/fastapi-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file csrd_lifespan-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: csrd_lifespan-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for csrd_lifespan-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94209ad898a81082e9e7132da32c8ea7403238ce587056ef9826aea6e0b23bf7
MD5 b29df60579b0c958f7cd6aabd83277fc
BLAKE2b-256 5da2aa3de007d8527e867159eb4167ffd7d40c6cbb76cc131a6326089c3818ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for csrd_lifespan-0.5.1-py3-none-any.whl:

Publisher: release.yml on csrd-api/fastapi-common

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