Skip to main content

Quicker FastApi developing tools

Project description

Quicker FastApi developing tools

Build CI Netlify status
Package version Python versions License


Documentation: https://fastapi-restful.netlify.app

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

Base on: https://github.com/dmontagu/fastapi-utils


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

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
  • OpenAPI Spec Simplification: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator
  • SQLAlchemy Sessions: The FastAPISessionMaker class provides an easily-customized SQLAlchemy Session dependency

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.7+.

Installation

pip install fastapi-restful  # For basic slim package :)

pip install fastapi-restful[session]  # To add sqlalchemy session maker

pip install fastapi-restful[all]  # For all the packages

License

This project is licensed under the terms of the MIT license.

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

Uploaded Source

Built Distribution

fastapi_restful-0.4.4-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_restful-0.4.4.tar.gz.

File metadata

  • Download URL: fastapi_restful-0.4.4.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for fastapi_restful-0.4.4.tar.gz
Algorithm Hash digest
SHA256 8fba4aace562b76c16d19585119bab7426a5ae69c6d482d578d06bef44b47ac3
MD5 da2226deddb6f0e4f2143012c141e47a
BLAKE2b-256 f1702281775e758025a371fdc7f60cb232a4c0dd8548b86e54b25be3d153da23

See more details on using hashes here.

File details

Details for the file fastapi_restful-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_restful-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 84d4dcbf23090fd8398cb62b526cc43632e88576ce3304a690c2a3b2c15bc0f7
MD5 67b3e435b691e14b4e7f1fc4e9edb42b
BLAKE2b-256 6242c1a3773c931c2ede3fdd56fcb71bdf2b03c194e18242c142e3510982c009

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