jder-fastapi


Namejder-fastapi JSON
Version 0.1.0.dev1 PyPI version JSON
download
home_pageNone
SummaryA response builder for FastAPI
upload_time2025-08-29 19:31:50
maintainerNone
docs_urlNone
authorAlpheus
requires_python>=3.13
licenseNone
keywords jder json response fastapi python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/94/e5/a5167750fd2834d6ccced3b0c93fd9aab0c19bb181d28af134271abc62d1/jder_fastapi-0.1.0.dev1.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.dev1",
    "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": "cbb3394460654dc46c4dfc7b1956e7a669add39f43ac4bb4ce2f4178e946bd7e",
                "md5": "28605586d9e21094fd91104880723965",
                "sha256": "f63517c409a603f3d3737622f04d086f0b227230267b4c4d0deb999a31af4180"
            },
            "downloads": -1,
            "filename": "jder_fastapi-0.1.0.dev1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28605586d9e21094fd91104880723965",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.13",
            "size": 7302,
            "upload_time": "2025-08-29T19:31:48",
            "upload_time_iso_8601": "2025-08-29T19:31:48.988962Z",
            "url": "https://files.pythonhosted.org/packages/cb/b3/394460654dc46c4dfc7b1956e7a669add39f43ac4bb4ce2f4178e946bd7e/jder_fastapi-0.1.0.dev1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "94e5a5167750fd2834d6ccced3b0c93fd9aab0c19bb181d28af134271abc62d1",
                "md5": "cf88daed31ea53021566a869641b6441",
                "sha256": "1d544a9748701e5dbbcd7a47ef502672cbe2d7b59c277f0d5bb4eb725b3238c4"
            },
            "downloads": -1,
            "filename": "jder_fastapi-0.1.0.dev1.tar.gz",
            "has_sig": false,
            "md5_digest": "cf88daed31ea53021566a869641b6441",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.13",
            "size": 3398,
            "upload_time": "2025-08-29T19:31:50",
            "upload_time_iso_8601": "2025-08-29T19:31:50.164234Z",
            "url": "https://files.pythonhosted.org/packages/94/e5/a5167750fd2834d6ccced3b0c93fd9aab0c19bb181d28af134271abc62d1/jder_fastapi-0.1.0.dev1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-29 19:31:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jder-std",
    "github_project": "fastapi",
    "github_not_found": true,
    "lcname": "jder-fastapi"
}
        
Elapsed time: 0.86494s