Reusable utilities for FastAPI
Project description
🎨⚡️🔥 Reusable Utilities for FastAPI
Source Code: https://github.com/priyanshu-panwar/fastapi-utilities
Inspired From: dmontagu/fastapi-utils
Features
This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:
- Repeated Tasks: Easily trigger periodic tasks on server startup.
from fastapi_utilities.repeat import repeat_every
@router.on_event('startup')
@repeat_every(seconds=3)
async def print_hello():
print("hello")
Requirements
This package is intended for use with any recent version of FastAPI and Python 3.7+.
Installation
pip install fastapi-utils
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
Close
Hashes for fastapi_utilities-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ada1da38e3c4c6d9ec0894e878569e95479cc369df362a27005e6f3ea825e9 |
|
MD5 | 3857dab9e6feb0cf6df6eaa2209ff59a |
|
BLAKE2b-256 | f58f458f4b0e6f928a536ac0fa4ce84adcec055d9c22f56a69dc5c03b130f527 |