fastapi-utils-evo-0.2.2
توضیحات
Reusable utilities for FastAPI
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastapi-utils-evo-0.2.2 |
| نام | fastapi-utils-evo |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | David Montague |
| ایمیل نویسنده | davwmont@gmail.com |
| آدرس صفحه اصلی | https://fastapi-utils.davidmontague.xyz |
| آدرس اینترنتی | https://pypi.org/project/fastapi-utils-evo/ |
| مجوز | MIT |
<p align="center">
<em>Reusable utilities for FastAPI</em>
</p>
<p align="center">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<a href="https://github.com/dmontagu/fastapi-utils" target="_blank">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build">
</a>
<a href="https://codecov.io/gh/dmontagu/fastapi-utils" target="_blank">
<img src="https://codecov.io/gh/dmontagu/fastapi-utils/branch/master/graph/badge.svg" alt="Coverage">
</a>
<a href="https://app.netlify.com/sites/trusting-archimedes-72b369/deploys">
<img src="https://img.shields.io/netlify/28b2a077-65b1-4d6c-9dba-13aaf6059877" alt="Netlify status">
</a>
<br />
<a href="https://pypi.org/project/fastapi-utils" target="_blank">
<img src="https://badge.fury.io/py/fastapi-utils.svg" alt="Package version">
</a>
<img src="https://img.shields.io/pypi/pyversions/fastapi-utils.svg">
<img src="https://img.shields.io/github/license/dmontagu/fastapi-utils.svg">
</p>
---
**Documentation**: <a href="https://fastapi-utils.davidmontague.xyz" target="_blank">https://fastapi-utils.davidmontague.xyz</a>
**Source Code**: <a href="https://github.com/dmontagu/fastapi-utils" target="_blank">https://github.com/dmontagu/fastapi-utils</a>
---
This is a forked version of fatapi-utils developped by David Montagu.
---
## Features
This package includes a number of utilities to help reduce boilerplate and reuse common functionality across projects:
- **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
- **SQLAlchemy Sessions**: The `FastAPISessionMaker` class provides an easily-customized SQLAlchemy Session dependency
- **OpenAPI Spec Simplification**: Simplify your OpenAPI Operation IDs for cleaner output from OpenAPI Generator
---
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](https://fastapi-utils.davidmontague.xyz/) 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
```bash
pip install fastapi-utils
```
## License
This project is licensed under the terms of the MIT license.
نیازمندی
| مقدار | نام |
|---|---|
| - | fastapi |
| >=1.0,<2.0 | pydantic |
| >=1.3.12,<2.0.0 | sqlalchemy |
| >=2.0.0,<3.0.0 | pytest-only |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl fastapi-utils-evo-0.2.2:
pip install fastapi-utils-evo-0.2.2.whl
نصب پکیج tar.gz fastapi-utils-evo-0.2.2:
pip install fastapi-utils-evo-0.2.2.tar.gz