Skip to main content

A collection of utilities for building APIs with FastAPI

Project description

Bingqilin

A collection of utilities that serve as syntactic ice cream for your FastAPI app

Package version


Documentation: https://a-huy.github.io/bingqilin/ Source Code: https://github.com/a-huy/bingqilin


Features

This package contains some utilities for common actions and resources for your FastAPI app:

  • Extended Settings Loading - Bingqilin provides additional pieces to enhance Pydantic's BaseSettings:

    • Add settings sources to enable loading from .yaml files or .ini files
    • Allow the option to add the settings model to the OpenAPI docs (/docs)
    • A base ConfigModel derived from Pydantic's BaseSettings that will allow configuring parts of your FastAPI app and Bingqilin's utilities via settings
    • Provides a SettingsManager class to attach your settings model to allow live reconfiguring
  • Reconfigurable Contexts - Provide constructs to declare shared connection objects (such as databases and third-party clients) that can be initialized from settings and can be enabled for live reconfiguring.

  • Validation Error Logging - Add an exception handler for RequestValidationError that emits a log. Useful for troubleshooting routes that support a lot of different types of requests, such as third-party callback handlers.

Requirements

This package is intended for use with any recent version of FastAPI (>=0.95.2).

Installation

pip install bingqilin

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

bingqilin-0.6.6.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

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

bingqilin-0.6.6-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file bingqilin-0.6.6.tar.gz.

File metadata

  • Download URL: bingqilin-0.6.6.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

File hashes

Hashes for bingqilin-0.6.6.tar.gz
Algorithm Hash digest
SHA256 cdaf6fb06a78dce5c91dce08f8e1211346d7d3146c2cd3eed6b7dc419f3123a2
MD5 7b9f255c5f847bcc58498f389bf841fa
BLAKE2b-256 e439e15c748d3a46ea37b0e57823e20edbc29133d04a796bce438ca1b54304d0

See more details on using hashes here.

File details

Details for the file bingqilin-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: bingqilin-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0

File hashes

Hashes for bingqilin-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3dc665ad3a2fc7f158cad1c166ccee0110e6d2df8f825301e71bab219ab2fb
MD5 6d8eb7a507ce793ba0c2ab8f70def5da
BLAKE2b-256 145118b2f2c9b9146ae133eab174b5ee2b8bf3d17e74dcbd5f15a5303dbfcf47

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