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.3.0

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.3.0
File Size Uploaded Provenance Actions
flaskit_cli-0.3.0.tar.gz 550.3 kB Without provenance Details for flaskit_cli-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / flaskit_cli-0.3.0.tar.gz

Download URL flaskit_cli-0.3.0.tar.gz
Size 550.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ccf4df052fe365a525c0a0c35559b045d49f62e91fa24b4ab288e459ffa1cd8e
BLAKE2b-256 checksum
How to use checksums
d3c833129d4ec77a53771b1e63819199fed8fc6fe182ae350d0470183b03c8a1
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.3.0-py3-none-any.whl

Download URL flaskit_cli-0.3.0-py3-none-any.whl
Size 529.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74e5d0f8d22643c707cae3a15eb1a9da86f8289a31510318f7372c253a15dffa
BLAKE2b-256 checksum
How to use checksums
9b9badb594b5e2ee423e82d612a6c0658987784dce34186de8bd6a20cbaf9160
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.3.0

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