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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file fastapi_utilities-0.1.0.tar.gz.

File metadata

  • Download URL: fastapi_utilities-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for fastapi_utilities-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef6c7a530696c3ad06de5c36c87b0310e6d38c058302ec9c638b7b741d1bcccf
MD5 f46d715d7b308407d8002f33ba74d1bb
BLAKE2b-256 4438b6fadd921274f8720c8112723ec38f5df086acdcdd2bd13b9a9120f85400

See more details on using hashes here.

File details

Details for the file fastapi_utilities-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_utilities-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45ada1da38e3c4c6d9ec0894e878569e95479cc369df362a27005e6f3ea825e9
MD5 3857dab9e6feb0cf6df6eaa2209ff59a
BLAKE2b-256 f58f458f4b0e6f928a536ac0fa4ce84adcec055d9c22f56a69dc5c03b130f527

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