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
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'sBaseSettings
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
- Add settings sources to enable loading from
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bingqilin-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69468a01b8b820e0b2751d0d27d2965e57c2744f81c8549f26f0dc4cf4c2029b |
|
MD5 | c7a537df0f77c28474209af81bea5463 |
|
BLAKE2b-256 | 591441a57afb580fc47d5eb8dc15df1dcf7aba44ee55e57a95de226c28c17588 |