A response builder for FastAPI
Project description
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
}
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jder_fastapi-0.2.0.tar.gz.
File metadata
- Download URL: jder_fastapi-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f2646a1ac443305a98e2331cabdf1ac9c09a4e6caedec6de010c4b937bb1808
|
|
| MD5 |
ed1feae6a9885525762808826092acde
|
|
| BLAKE2b-256 |
bebcd092e86b2d7bea4c83e7f2c135fdc271dbc46d4a0468f5ecb64f0188842e
|
File details
Details for the file jder_fastapi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: jder_fastapi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca3b11b2344709e7e2f47356a74c6d179781c6f2f95df5d75ec8b98a0cae17f
|
|
| MD5 |
16e32c25e0df895fa1f297f830815dc7
|
|
| BLAKE2b-256 |
d96fefbad6d9446eff761d05d7d0e8478b206c18906ce4c0adcf5f787abd1940
|