Flac
Flask based library to help structure an application with an eye towards CLI apps, not just web.
Features
-
App factory pattern
- blueprints (web & CLI)
-
CLI Integration
- custom command
- two-phase init for blueprints
-
Configuration
- .env & .flaskenv
- from files
- from environment
- alternate settings for testing, dev, prod
-
Logging
- logs are probably cheap, don't prematurely optimize
- centralize your logs to an aggregation service
- .info logs are show/saved by default
- cli output is plain text
- saved logs are JSON
- saved logs go to syslog, let devops handle the aggregation
-
Testing
- alternate DB URI
- pytest & fixtures
-
Flask-SQLAlchemy
- ext init
- fixtures to get db to ensure app context
-
Celery
- refresh process pool
-
cli integration with the ability to customize the app's configuration using global cli options
someapp --debug --with-sentry run-some-task
-
pytest fixtures for app initialization
-
demo cli test that uses separate process
Copier App Template
Flac provides a copier template to create the scaffold needed for a basic Flac app:
copier copy --trust gh:rsyring/flac .../projects/some-new-app-pkg
Development
Copier Template
Project structure and tooling mostly derives from the Coppy, see its documentation for context and additional instructions.
This project can be updated from the upstream repo, see Updating a Project.
Project Setup
From zero to hero (passing tests that is):
-
Ensure host dependencies are installed
-
Start docker service dependencies (if applicable):
docker compose up -d -
Sync project virtualenv w/ lock file:
uv sync -
Configure prek:
prek install -
Run tests:
nox
Versions
Versions are date based. A bump action exists to help manage versions:
# Show current version
mise bump --show
# Bump version based on date, tag, and push:
mise bump
# See other options
mise bump -- --help
Metadata
Release files for flask-flac 0.20260528.1
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_flac-0.20260528.1.tar.gz | 120.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_flac-0.20260528.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 135.7 kB
Release files / flask_flac-0.20260528.1.tar.gz
| Download URL | flask_flac-0.20260528.1.tar.gz |
|---|---|
| Size | 120.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14dc3a083eb0c83f2197666af4662a243d8e0f1c066f4b1e22a627d85c068af1
|
|
BLAKE2b-256 checksum How to use checksums |
d70b2197d48b8ac7b0e452de1a951df443f785c67a6087e059796c20802d8ccd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logRelease files / flask_flac-0.20260528.1-py3-none-any.whl
| Download URL | flask_flac-0.20260528.1-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e2bb6dfdac070fed68e75b4cc2c5dfd49a3a7354e3d16de0a318176b0204aff
|
|
BLAKE2b-256 checksum How to use checksums |
420b11d1e64a52c2950dce62ae28e493a486b7ede9e94e141b471123263558e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency log