Skip to main content

flaskit

License Workflow PyPI version PyPI - Wheel PyPI - Format Python versions PyPI downloads Downloads Documentation Status GitHub last commit GitHub Release Date

CLI scaffolding for Flask + Flask-Smorest APIs: modular resources, auto-discovery, local Swagger UI, JSON logging (optional OpenTelemetry), BASE_PATH for every route and asset, and a production Docker image with bjoern.

Documentation: flaskit.readthedocs.io · source under docs/

pip install -e ".[docs]"
mkdocs serve

Install

pip install flaskit-cli
# or from source
pip install -e .

PyPI name is flaskit-cli (flaskit / flask-it are taken or blocked); the CLI and import stay flaskit.

Requires Python 3.10+ for the CLI. Generated apps target Python 3.11+.

Quick start

pip install flaskit-cli
flaskit init myapi
cd myapi
python -m venv .venv
# activate .venv, then:
pip install -U pip && pip install -r requirements.txt
# edit .env as needed
flaskit generate module users
python app.py

Open http://127.0.0.1:5000/docs. Full walkthrough: Quick start.

CLI

Command Description
flaskit init [path] Scaffold project (app.py, config.py, .env, resources/, assets/, templates/)
flaskit generate module <name> Create resources/<name>/ with flask_bp + smorest_blp stubs

Layout

|- app.py
|- config.py
|- .env
|- templates/
|  > swagger_ui.html
|- resources/
|  > users/
|     |- blueprint.py
|     |- resource.py
|     > schema.py
> assets/
   |- swagger-ui/
   > statics/

Highlights

  • BASE_PATH applies to API routes, /docs, and /assets
  • Timezone via TIMEZONE (IANA); log fields include timezone / tz_offset
  • Logging to stream and/or file; optional OTel with the same sinks when enabled
  • Docker on Python 3.13; bjoern installed in-image only
  • Versioning of the flaskit package itself from git tags (setuptools-scm)

Publish (maintainers)

Push a tag v* to trigger .github/workflows/publish.yml. Set repository secret PYPI_API_TOKEN only (Python/PyPI URL are fixed in the workflow).

License

GPL-3.0-or-later. See LICENSE.

Metadata

Release files for flaskit-cli 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaskit-cli 0.2.2
File Size Uploaded Provenance Actions
flaskit_cli-0.2.2.tar.gz 550.5 kB Without provenance Details for flaskit_cli-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaskit-cli 0.2.2
File Interpreter ABI Platform Actions
flaskit_cli-0.2.2-py3-none-any.whl Python 3 none any Details for flaskit_cli-0.2.2-py3-none-any.whl

Total release size: 1.1 MB

Release files / flaskit_cli-0.2.2.tar.gz

Download URL flaskit_cli-0.2.2.tar.gz
Size 550.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11cb3919242398b68708a796d78c5124e9e6b690bcbb853f1c2e0d8c0652fd03
BLAKE2b-256 checksum
How to use checksums
68e14fa5afbd5c0b7830b2f03da65e9308517a0db6a8ac3837bb2cef107b5139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / flaskit_cli-0.2.2-py3-none-any.whl

Download URL flaskit_cli-0.2.2-py3-none-any.whl
Size 529.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d990c2b2897e0fbfbba0f72be0f585633aa0450f9a0814f1623bc02ef8f7892f
BLAKE2b-256 checksum
How to use checksums
3848b9543ff5947164801e882b4443416cb6786215041ef42e961ebeaf28ab6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for flaskit-cli 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page