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
fastapi_tools_bootstrap-0.1.5.tar.gz 1.7 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

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