Flask API Tools
Utilities for building, running, and maintaining Python APIs with Flask and associated Flask extensions.
Installation
Install and update using pip:
pip install -U flask-api-tools
Tools
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).
Install the dependencies with pipenv (making sure to include dev and pre-release packages):
pipenv install --dev --pre
Configure your environment:
pipenv shell && export PYTHONPATH="$PWD"
Run the tests:
pytest
Or with logging:
pytest -s
Or tests with coverage:
pytest --cov=./
Format the code with Black:
black $PWD
Releases
Cleanup the (.gitignored) dist folder (if you have one):
rm -rf dist
Notch up the version number in setup.py and build:
python3 setup.py sdist bdist_wheel
Push to PyPi (using the ScholarPack credentials when prompted)
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Links
Release files for flask-api-tools 1.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask-api-tools-1.6.3.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_api_tools-1.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / flask-api-tools-1.6.3.tar.gz
| Download URL | flask-api-tools-1.6.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c91136cd558669324faeb9aa6b996dcd7bff90a36909927dab7d9d7d675151fc
|
|
BLAKE2b-256 checksum How to use checksums |
9d15ea8ebbb5dbd2b8eb8ec0922d704349d0f7489c9c1963800e2816bc4c708a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|
Release files / flask_api_tools-1.6.3-py3-none-any.whl
| Download URL | flask_api_tools-1.6.3-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16318a2b7c4a12d8c771c9ccea5d1fadeea1e1bf4484f090d759e4a93ef3033e
|
|
BLAKE2b-256 checksum How to use checksums |
911afc6b5c2e41fbfcc91ad1c0a83412b4f324c697c7c512da53feebfe7a8679
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|