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

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.

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

Uploaded Source

Built Distribution

FastApi_RESTful-0.3.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FastApi-RESTful-0.3.2.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for FastApi-RESTful-0.3.2.tar.gz
Algorithm Hash digest
SHA256 04c9525f28b1614e4369e7fe942e8d6de6005eee96d4097b9b483fee2098a0aa
MD5 e063ca301d112b619f7c22d6f0a5ea1c
BLAKE2b-256 a246d35ca40f0b10a8d7e708b77123b556ebee8653be5cc768009eefdeb29908

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FastApi_RESTful-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for FastApi_RESTful-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb6c55185ec8a9f88676e12ca29dde71e1afe6a6c92f651e30b82c7eefed4bdf
MD5 f84c8b012df68b868b8913f1e46a8639
BLAKE2b-256 5888d622c91ffd856838d45d89ba970b110703207d6a1fc4a8df7dcd3da8777d

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