Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ischaojie/flask-more
Modernized flask api builder with validator and openapi.
https://github.com/ischaojie/flask-more
api flask flask-extension openapi pydantic python schema swagger
Last synced: about 2 months ago
JSON representation
Modernized flask api builder with validator and openapi.
- Host: GitHub
- URL: https://github.com/ischaojie/flask-more
- Owner: ischaojie
- License: mit
- Created: 2022-07-24T08:24:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T13:06:00.000Z (10 months ago)
- Last Synced: 2024-12-01T00:51:23.790Z (about 2 months ago)
- Topics: api, flask, flask-extension, openapi, pydantic, python, schema, swagger
- Language: Python
- Homepage: https://flask-more.chaojie.fun
- Size: 820 KB
- Stars: 18
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ischaojie/flask-more - Modernized flask api builder with validator and openapi. (Python)
README
# Flask-More
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ischaojie/flask-more/ci.yml?branch=main&style=flat-square)
[![codecov](https://codecov.io/gh/ischaojie/flask-more/branch/main/graph/badge.svg?token=FPBE0LGDCO)](https://codecov.io/gh/ischaojie/flask-more)
[![PyPI](https://img.shields.io/pypi/v/flask-more?style=flat-square)](https://pypi.org/project/Flask-More/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask-more?style=flat-square)
![GitHub](https://img.shields.io/github/license/ischaojie/flask-more?style=flat-square)Modernized Flask API builder with schema validator and OpenAPI.
> **Warning**
>
> Currently, `Flask-More` is still under active development(before v1.0.0).
>
> Be careful to use it in production.Flask-More is kind of like the famous library [FastAPI](https://github.com/tiangolo/fastapi), bringing part of its brilliant features to your Flask application, you can see a lot of similarities between the two.
For example, it uses [Pydantic](https://github.com/samuelcolvin/pydantic) for request and response validation,
it will auto-generate `OpenAPI` API docs and so on.## Feature
- Intuitive and easy to use.
- Request/Response validation based on type hinting(by Pydantic).
- Auto-generated `OpenAPI` docs(both swagger and redoc).
- Designed for API development.## Quick start
```bash
python -m pip install flask-more
```You can view and run the code in the [example](https://github.com/ischaojie/flask-more/tree/main/example) file.
Then open [http://127.0.0.1:5000/docs](http://127.0.0.1:5000/docs) you will see the API docs like this:![docs](https://img.chaojie.fun/flask-lan-docs.png)
## License
This project is licensed under the terms of the MIT license.