JDER FastAPI
A response builder for FastAPI.
This package includes different response builders based on the JSON response structure specified in JSON Data Errors Response (JDER). With the builders, various kinds of responses can be created easily instead of sending plain text responses.
Quick Start
To create a JSON response, use the following code:
from fastapi import FastAPI
from fastapi.responses import Response
from jder_fastapi.responses.json import createJsonResponse
app: FastAPI = FastAPI()
@app.get("/")
async def route() -> Response:
return createJsonResponse()
And the response will be shown as below:
{
"success": true,
"data": null,
"errors": []
}
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for jder-fastapi 0.2.5
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 |
|---|---|---|---|---|
| jder_fastapi-0.2.5.tar.gz | 3.7 kB | Without provenance | Details for jder_fastapi-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jder_fastapi-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for jder_fastapi-0.2.5-py3-none-any.whl |
Total release size: 11.9 kB
Release files / jder_fastapi-0.2.5.tar.gz
| Download URL | jder_fastapi-0.2.5.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
356dcf32f7db39d0b54bab865b93458ecc861a2dc5f8fc83ac8da54e6a83a6e3
|
|
BLAKE2b-256 checksum How to use checksums |
629fe084092e19b18b4615120488994cbffa2bcd08e9805ae9633455674bef87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 / jder_fastapi-0.2.5-py3-none-any.whl
| Download URL | jder_fastapi-0.2.5-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
018c7e19aa1c33e777cc1a92631b18bb106a8907bed088d3f949b50fae55ed6e
|
|
BLAKE2b-256 checksum How to use checksums |
19dca831322db52bf5d248453ff6f2aece0754c6d2cd0e4cb9cce27332198bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 jder-fastapi 0.2.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.