bedrock-fastapi
FastAPI integration for Bedrock. Your application creates and owns the FastAPI app; this package supplies pieces you add as needed:
RequestScopeMiddleware: one Bedrock DI scope per request.DbSessionMiddleware/AsyncDbSessionMiddleware: each request runs insidedb.session_scope()/db.asession_scope(). Services commit; uncommitted work is rolled back when the request ends.bedrock_exception_handler(status_codes): answers mappedBedrockExcsubclasses with{"detail": ...}.
from bedrock.exc import BedrockExc
from bedrock_fastapi import AsyncDbSessionMiddleware, RequestScopeMiddleware, bedrock_exception_handler
app.add_middleware(AsyncDbSessionMiddleware)
app.add_middleware(RequestScopeMiddleware)
app.add_exception_handler(BedrockExc, bedrock_exception_handler({ItemNotFound: 404}))
See the FastAPI integration docs at https://bedrock-py.com/docs/integrations/fastapi for installation, the transaction convention, and a complete example.
Metadata
Release files for bedrock-fastapi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bedrock_fastapi-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for bedrock_fastapi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bedrock_fastapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bedrock_fastapi-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / bedrock_fastapi-0.1.0.tar.gz
| Download URL | bedrock_fastapi-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d28e55c2eb9c158d993c78ade3803a1dede3d1dec32f9851de2f91bbd8e7dc1c
|
|
BLAKE2b-256 checksum How to use checksums |
5ae1b3de163ae0b8ad562b700b29fb8428400d8708e803fdecde6360744cdfb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bedrock_fastapi-0.1.0-py3-none-any.whl
| Download URL | bedrock_fastapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3392bae4997b28f60dab1544e09441ad76b2896240d480337910edb560cc8179
|
|
BLAKE2b-256 checksum How to use checksums |
fb67402a35433feb8abe823b6a8ddcb2a927a03f0dae237a9f0375fb3c002815
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bedrock-fastapi 0.1.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.