Quicker FastApi developing tools
Project description
Quicker FastApi developing tools
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
andCamelStrEnum
classes make string-valued enums easier to maintain - CamelCase Conversions: Convenience functions for converting strings from
snake_case
tocamelCase
orPascalCase
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file FastApi-RESTful-0.3.1.tar.gz
.
File metadata
- Download URL: FastApi-RESTful-0.3.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79218677221f7f384535d7a4559a66096dd10624643ab4a54c4bc52a36af5d13 |
|
MD5 | 7a365cb3a3233a47dea8cf99c3b866d7 |
|
BLAKE2b-256 | b3eb9c8f7939e2f48f86bf0cd9921437e430a582967f1ec25e6ff2e5bbaa628e |
File details
Details for the file FastApi_RESTful-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: FastApi_RESTful-0.3.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8540cb8a42e68ae658db4c8a2718bfc1c109bd76e53f3f97c17f90793647be30 |
|
MD5 | 7f5102cd35f3eaee82fa0085713ba390 |
|
BLAKE2b-256 | bb2f53740a49e3c589ff265a2ea49cba8648526c89ee464fdd2596d99f097fee |