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.
  • 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.6.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

fastapi_restful-0.6.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_restful-0.6.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.14 Linux/6.5.0-1018-azure

File hashes

Hashes for fastapi_restful-0.6.0.tar.gz
Algorithm Hash digest
SHA256 75cde98b19224dfa424e7fa1b04b51d4787b02e38fae6c1436815857bc3e8179
MD5 45096c8f618877a34ad672df9142c765
BLAKE2b-256 53adea9cc9958dfa9daf8f4358de7021b24f9c5f257be3137a75179713d9b110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_restful-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.14 Linux/6.5.0-1018-azure

File hashes

Hashes for fastapi_restful-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f6f7c6cc329e11fd8584876560f624989168ddc1bc22cc9998da4ab4f546a3
MD5 2414aa273d3e07b2c57b9a9c54cea027
BLAKE2b-256 8b8db5ac6d4e30e374f416145df3e6c6d9b07818bc33891982bfaabe5b960cba

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