Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jder_fastapi-0.1.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jder_fastapi-0.1.8-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file jder_fastapi-0.1.8.tar.gz.

File metadata

  • Download URL: jder_fastapi-0.1.8.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

Hashes for jder_fastapi-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ae1bf8a5805a72255ba584f7f7feae569b59952c23f2f54d91c34e79996bac56
MD5 e9b40d38b2c11ecdeee8360b3eaa8ff3
BLAKE2b-256 52f0c9846eebb98d21339331e83c5dc0deacb2ef262b1e1afd189876b6865c1c

See more details on using hashes here.

File details

Details for the file jder_fastapi-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: jder_fastapi-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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

Hashes for jder_fastapi-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 619e8fba3bcb623300d79b42b290c1aca4d09fd3110546023ac3424397446a7d
MD5 c14628b4482d4cf6aa2a54c6ef380589
BLAKE2b-256 23e35b33673d8ea090f6208da8294804283f71799037a2133171c3ed5b4e3fce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page