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.2.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

bingqilin-0.6.2-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bingqilin-0.6.2.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for bingqilin-0.6.2.tar.gz
Algorithm Hash digest
SHA256 f161afe05c5ec66c627063a2fec08a6d5b9a58d154401b8ba01f9f4474a85332
MD5 6d5ef27927d63916ed88f633c0a2bce1
BLAKE2b-256 30c7750e1c381a981ffe6e79db6d09f29f93e2a525acf57854684ae77aa00302

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bingqilin-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for bingqilin-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60a4b795f651a5a16a077a32b294fa26014505832589d0a790f916cfb5a5729b
MD5 de70af64be5b3686ae24728d5dd397f6
BLAKE2b-256 d4db6852c3c1b9732b0680b242894491644fb6ee11d41569097992be901d3e85

See more details on using hashes here.

Supported by

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