Skip to main content

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)

Source distribution for jder-fastapi 0.2.5
File Size Uploaded
jder_fastapi-0.2.5.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jder-fastapi 0.2.5
File Interpreter ABI Platform
jder_fastapi-0.2.5-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page