Skip to main content

Tooling to assist with building Flask APIs

Project description

Validate Build

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-api-tools-1.6.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

flask_api_tools-1.6.3-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file flask-api-tools-1.6.3.tar.gz.

File metadata

  • Download URL: flask-api-tools-1.6.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flask-api-tools-1.6.3.tar.gz
Algorithm Hash digest
SHA256 c91136cd558669324faeb9aa6b996dcd7bff90a36909927dab7d9d7d675151fc
MD5 6aa8fec3c2beeadc1dcc9811b0c417f1
BLAKE2b-256 9d15ea8ebbb5dbd2b8eb8ec0922d704349d0f7489c9c1963800e2816bc4c708a

See more details on using hashes here.

File details

Details for the file flask_api_tools-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: flask_api_tools-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for flask_api_tools-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 16318a2b7c4a12d8c771c9ccea5d1fadeea1e1bf4484f090d759e4a93ef3033e
MD5 11815f701ddfd0f6778518bf34a34113
BLAKE2b-256 911afc6b5c2e41fbfcc91ad1c0a83412b4f324c697c7c512da53feebfe7a8679

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