Metadata-Version: 2.4
Name: jder-fastapi
Version: 0.2.0
Summary: A response builder for FastAPI
Keywords: jder,json,response,fastapi,python
Author: Alpheus
Author-email: Alpheus <contact@alphe.us>
License-Expression: MIT
Classifier: Topic :: File Formats
Classifier: Topic :: File Formats :: JSON
Classifier: Topic :: File Formats :: JSON :: JSON Schema
Classifier: Framework :: FastAPI
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Dist: fastapi>=0.116.0,<0.128.0
Requires-Python: >=3.13, <4.0
Project-URL: Changelog, https://github.com/jderstd/fastapi/blob/main/package/CHANGELOG.md
Project-URL: Documentation, https://github.com/jderstd/fastapi/blob/main/docs/README.md
Project-URL: Homepage, https://github.com/jderstd/fastapi
Project-URL: Issues, https://github.com/jderstd/fastapi/issues
Project-URL: Repository, https://github.com/jderstd/fastapi
Description-Content-Type: text/markdown

# 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/jderstd/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.
