# 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)](https://github.com/jder-std/spec). 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:
```python
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:
```json
{
"success": true
}
```
## License
This project is licensed under the terms of the MIT license.
Raw data
{
"_id": null,
"home_page": null,
"name": "jder-fastapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.13",
"maintainer_email": null,
"keywords": "jder, json, response, fastapi, python",
"author": "Alpheus",
"author_email": "Alpheus <contact@alphe.us>",
"download_url": "https://files.pythonhosted.org/packages/37/55/34d6c1a7d2ab199a3626c672dd1e3d9bbf459af1389022c389bc4f078a05/jder_fastapi-0.1.0.tar.gz",
"platform": null,
"description": "# JDER FastAPI\n\nA response builder for FastAPI.\n\nThis package includes different response builders based on the JSON response structure specified in [JSON Data Errors Response (JDER)](https://github.com/jder-std/spec). With the builders, various kinds of responses can be created easily instead of sending plain text responses.\n\n## Quick Start\n\nTo create a JSON response, use the following code:\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi.responses import Response\nfrom jder_fastapi.responses.json import createJsonResponse\n\napp: FastAPI = FastAPI()\n\n@app.get(\"/\")\nasync def route() -> Response:\n return createJsonResponse()\n```\n\nAnd the response will be shown as below:\n\n```json\n{\n \"success\": true\n}\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n",
"bugtrack_url": null,
"license": null,
"summary": "A response builder for FastAPI",
"version": "0.1.0",
"project_urls": {
"Changelog": "https://github.com/jder-std/fastapi/blob/main/package/CHANGELOG.md",
"Documentation": "https://github.com/jder-std/fastapi/blob/main/docs/README.md",
"Homepage": "https://github.com/jder-std/fastapi",
"Issues": "https://github.com/jder-std/fastapi/issues",
"Repository": "https://github.com/jder-std/fastapi"
},
"split_keywords": [
"jder",
" json",
" response",
" fastapi",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5bb8cb5c2ab10983bcf25809d9c50f972ff91e7f52bed5848e2d24f75135bd85",
"md5": "944ddf4ed23893e95e727bc3d9e350d0",
"sha256": "e182243830c34763b627e2dd62b26a20cedcadabfc43cdd6c8fa6a5500b1fc30"
},
"downloads": -1,
"filename": "jder_fastapi-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "944ddf4ed23893e95e727bc3d9e350d0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.13",
"size": 8188,
"upload_time": "2025-09-06T04:57:23",
"upload_time_iso_8601": "2025-09-06T04:57:23.837806Z",
"url": "https://files.pythonhosted.org/packages/5b/b8/cb5c2ab10983bcf25809d9c50f972ff91e7f52bed5848e2d24f75135bd85/jder_fastapi-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "375534d6c1a7d2ab199a3626c672dd1e3d9bbf459af1389022c389bc4f078a05",
"md5": "6fd292fc3a43d2e76a63687cac4ed3f5",
"sha256": "221705e319aec5d13b120764daca77dc171da32eb28177d7944ebd2a10d647cf"
},
"downloads": -1,
"filename": "jder_fastapi-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "6fd292fc3a43d2e76a63687cac4ed3f5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.13",
"size": 3618,
"upload_time": "2025-09-06T04:57:24",
"upload_time_iso_8601": "2025-09-06T04:57:24.764041Z",
"url": "https://files.pythonhosted.org/packages/37/55/34d6c1a7d2ab199a3626c672dd1e3d9bbf459af1389022c389bc4f078a05/jder_fastapi-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-06 04:57:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jder-std",
"github_project": "fastapi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "jder-fastapi"
}