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

Uploaded Source

Built Distributions

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

Uploaded Python 3

FastApi_RESTful-0.4.3-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: FastApi-RESTful-0.4.3.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for FastApi-RESTful-0.4.3.tar.gz
Algorithm Hash digest
SHA256 6953813d489d1d3220e85cc2421df609358b9523aa76f28359f8668ea4aa7a61
MD5 e91b5c33a43fe3ea3fe9cc14ca02695b
BLAKE2b-256 16fda30b8776eb48767b0bf97028f0d88aea01911ee24d131f2be34225bf082d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_restful-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for fastapi_restful-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6e05dbac96cceef9145151b374d64cd45aca2e19c120481e55c9ed9ad92651
MD5 931273138a5c67243557de7d3a3a6a4d
BLAKE2b-256 b5a01596aef6292ba7caf1864b4121e9fc6ca01152be3a19d18721a0c3561c0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FastApi_RESTful-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for FastApi_RESTful-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42e8906c729d435db53fe5ed51546996d51011bd3efbfb27cce115a8091bd747
MD5 e400ada67027bae02f2179664559f2bd
BLAKE2b-256 3df8f152c23d669efab0c78ccbc9cb0500c3c1c2a07ab492cf9fac2ac91ffd74

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