Skip to main content

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


Download files

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

Source Distribution

fastapi_utilities-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

fastapi_utilities-0.1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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