Skip to main content

bafser

A synchronous Flask and SQLAlchemy foundation for small applications and services: typed JSON schemas, JWT authentication, permissions, audit logs, model helpers, transaction-aware files, a bounded request dashboard and a project generator. Python 3.10 or newer.

Start a small project

Install bafser in your Python environment, then run:

bafser init_project

The first invocation creates bafser_config.py if it is missing. Edit that file, then rerun the generator and answer n when it asks whether you want to change the ready configuration. Existing files are preserved unless --force is supplied. --directory PATH selects the project directory.

For a small SQLite prototype, set use_alembic = False in the generated config:

bafser init_project
python main.py dev

The generated one-process entry point can prepare its database and storage at startup with AUTO_SETUP=True. DEV_MODE=True enables full diagnostic logging. For a migration-managed application, create the initial revision before starting it; see the guide.

Production

Use AUTO_SETUP=False for normal web/worker startup and perform setup explicitly:

python main.py --setup

Enable MULTIPROCESS_LOGGING=True when processes share log files. Keep persistent storage and keys outside replaceable release directories. Server logs retain messages and full exceptions by default; LOG_ERROR_DETAILS=False selects reduced production diagnostics. Per-route RequestPolicy controls body limits and HTTP data logging; production bodies and queries are omitted by default.

See deployment and security for keys, migrations, JWT validation, proxy configuration, database pools and backups.

Documentation

Dependency bounds and package metadata are maintained in pyproject.toml. The library keeps a small-project workflow; production requirements are configured explicitly by the application.

Metadata

Release files for bafser 2.18.1

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

Source distribution (sdist)

Source distribution for bafser 2.18.1
File Size Uploaded Provenance Actions
bafser-2.18.1.tar.gz 97.4 kB With provenance Details for bafser-2.18.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bafser 2.18.1
File Interpreter ABI Platform Actions
bafser-2.18.1-py3-none-any.whl Python 3 none any Details for bafser-2.18.1-py3-none-any.whl

Total release size: 221.4 kB

Release files / bafser-2.18.1.tar.gz

Download URL bafser-2.18.1.tar.gz
Size 97.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8c43d97a634518b6c9d209749ca08bb3476da6d6338e459a11530c909e0f2728
BLAKE2b-256 checksum
How to use checksums
e14bea82123957b1f873c70a575f913eec398a278f9b0046e0815dae2a23a2c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / bafser-2.18.1-py3-none-any.whl

Download URL bafser-2.18.1-py3-none-any.whl
Size 124.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65b456e0a2e870533ead9673ed5d9fa563e836d0a23268bf2def840724047363
BLAKE2b-256 checksum
How to use checksums
6f96c32e62e3ab8a91b455a595d3b8157acb5c1196d2cab0c21428606c110274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for bafser 2.18.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bafser-2.18.1.tar.gz

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 Nov 21, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2.18.1 This release

2 release files Full provenance

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