Skip to main content

Quicker FastApi developing tools

Project description

Quicker FastApi developing tools

Netlify status
Package version


Based on: Documentation: https://fastapi-utils.davidmontague.xyz

Source Code: https://github.com/yuval9313/fastapi-utils


FastAPI is a modern, fast web framework for building APIs with Python 3.6+.

But if you're here, you probably already knew that!


Features

This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:

  • Resource Class: Create CRUD with ease the OOP way with Resource base class that lets you implement methods quick.
  • Class Based Views: Stop repeating the same dependencies over and over in the signature of related endpoints.
  • Response-Model Inferring Router: Let FastAPI infer the response_model to use based on your return type annotation.
  • Repeated Tasks: Easily trigger periodic tasks on server startup
  • Timing Middleware: Log basic timing information for every request
  • SQLAlchemy Sessions: The FastAPISessionMaker class provides an easily-customized SQLAlchemy Session dependency
  • OpenAPI Spec Simplification: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator

It also adds a variety of more basic utilities that are useful across a wide variety of projects:

  • APIModel: A reusable pydantic.BaseModel-derived base class with useful defaults
  • APISettings: A subclass of pydantic.BaseSettings that makes it easy to configure FastAPI through environment variables
  • String-Valued Enums: The StrEnum and CamelStrEnum classes make string-valued enums easier to maintain
  • CamelCase Conversions: Convenience functions for converting strings from snake_case to camelCase or PascalCase and back
  • GUID Type: The provided GUID type makes it easy to use UUIDs as the primary keys for your database tables

See the docs for more details and examples.

Requirements

This package is intended for use with any recent version of FastAPI (depending on pydantic>=1.0), and Python 3.6+.

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-RESTful-0.2.3.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

FastApi_RESTful-0.2.3-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file FastApi-RESTful-0.2.3.tar.gz.

File metadata

  • Download URL: FastApi-RESTful-0.2.3.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for FastApi-RESTful-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3926f13e02d0928c3e2ebf7a7a22150cb0587a295ab6c0cd59c12745fe76937e
MD5 52e9f380d51215ff838c23df9afc8028
BLAKE2b-256 bf7521a1a13f323d9b0d2fa6c7ac469aacd5cb6c34a39278912836a75193e354

See more details on using hashes here.

File details

Details for the file FastApi_RESTful-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: FastApi_RESTful-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for FastApi_RESTful-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc011435ef65d4c6ed4d446548cec956e167fc0f20613bf114ec4ae358698777
MD5 34d5005e8e532ca3bac681a8e78154d2
BLAKE2b-256 c62feef1188217a398295f31372957793d1a643e6f156c49d81719e80c6eccee

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