flask-api-tools-1.6.3
توضیحات
Tooling to assist with building Flask APIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-api-tools-1.6.3 |
| نام | flask-api-tools |
| نسخه کتابخانه | 1.6.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ScholarPack |
| ایمیل نویسنده | dev@scholarpack.com |
| آدرس صفحه اصلی | https://github.com/ScholarPack/flask-api-tools |
| آدرس اینترنتی | https://pypi.org/project/flask-api-tools/ |
| مجوز | - |

# Flask API Tools
Utilities for building, running, and maintaining Python APIs with Flask and
associated Flask extensions.
# Installation
Install and update using `pip`:
```bash
pip install -U flask-api-tools
```
# Tools
* [Storage Backed Rate Limiting](https://github.com/ScholarPack/flask-api-tools/blob/master/flask_api_tools/rate_limiting/README.md)
* [Validators](https://github.com/ScholarPack/flask-api-tools/blob/master/flask_api_tools/validators/README.md)
# Developing
__The build pipeline requires your tests to pass and code to be formatted__
Make sure you have Python 3.x installed on your machine (use [pyenv](https://github.com/pyenv/pyenv)).
Install the dependencies with [pipenv](https://github.com/pypa/pipenv) (making sure to include dev and pre-release packages):
```bash
pipenv install --dev --pre
```
Configure your environment:
```bash
pipenv shell && export PYTHONPATH="$PWD"
```
Run the tests:
```bash
pytest
```
Or with logging:
```bash
pytest -s
```
Or tests with coverage:
```bash
pytest --cov=./
```
Format the code with [Black](https://github.com/psf/black):
```bash
black $PWD
```
# Releases
Cleanup the (.gitignored) `dist` folder (if you have one):
```bash
rm -rf dist
```
Notch up the version number in `setup.py` and build:
```bash
python3 setup.py sdist bdist_wheel
```
Push to PyPi (using the ScholarPack credentials when prompted)
```bash
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
```
# Links
* Releases: https://pypi.org/project/flask-api-tools/
* Code: https://github.com/ScholarPack/flask-api-tools
نیازمندی
| مقدار | نام |
|---|---|
| >=1.1 | flask |
| >=1.3 | flask-limiter |
| >=2.10 | redis |
| >=3.1 | bleach |
| >=1.3 | cerberus |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl flask-api-tools-1.6.3:
pip install flask-api-tools-1.6.3.whl
نصب پکیج tar.gz flask-api-tools-1.6.3:
pip install flask-api-tools-1.6.3.tar.gz