Skip to main content

Bootstrap

from fastapi import FastAPI
from fastapi_tools import bootstrap


@bootstrap.on_exit(kind=["server"])
async def shutdown1(app: FastAPI) -> None:
    print("Shutdown")
    
@bootstrap.on_exit
async def shutdown2(app: FastAPI) -> None:
    print("Shutdown")
    
    
app = FastAPI(lifespan=bootstrap.lifespan("server"))

Metadata

Release files for fastapi-tools-bootstrap 0.1.5

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

Source distribution (sdist)

Source distribution for fastapi-tools-bootstrap 0.1.5
File Size Uploaded Provenance Actions
fastapi_tools_bootstrap-0.1.5.tar.gz 1.7 kB Without provenance Details for fastapi_tools_bootstrap-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-tools-bootstrap 0.1.5
File Interpreter ABI Platform Actions
fastapi_tools_bootstrap-0.1.5-py3-none-any.whl Python 3 none any Details for fastapi_tools_bootstrap-0.1.5-py3-none-any.whl

Total release size: 4.2 kB

Release files / fastapi_tools_bootstrap-0.1.5.tar.gz

Download URL fastapi_tools_bootstrap-0.1.5.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3e03c2a80c257957d17995c9559aaf9704c144a3c2e2e9fdd2e50348b90d0a32
BLAKE2b-256 checksum
How to use checksums
f1bbd624f8976e15538f65d053680583ee432c3d53ca90faba23ca96668ad928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.5 Darwin/24.1.0

Release files / fastapi_tools_bootstrap-0.1.5-py3-none-any.whl

Download URL fastapi_tools_bootstrap-0.1.5-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7bbedd7cf9a5a53fd822b1ef7d2a7a3c632e903bd387eadc667f9e0e58274dc
BLAKE2b-256 checksum
How to use checksums
09bed22c77eb7d6dc255c0a720be7c017dfec84b57c051e137de7c0075871a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.5 Darwin/24.1.0

Security for fastapi-tools-bootstrap 0.1.5

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.1.5 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