Skip to main content

Zecure Microservices Framework (ZecMF)

A lightweight framework for building microservices in Python with Flask.

Features

  • Application Factory: Streamlined Flask application initialization that wires database, Celery, auth, CORS, observability, health, security headers and the error envelope in one call.
  • JWT Authentication: Default-deny auth with RS256/HS256, RBAC decorators, normalized role claims, optional audience/issuer scoping, and typed current-user accessors.
  • API Setup: Flask-RESTX with a standardized JSON error envelope ({message, code, details, request_id}) and first-class pagination primitives.
  • Background Tasks: Celery integration with an app-context ContextTask and a two-line worker bootstrap (zecmf.worker.make_celery), plus task monitoring.
  • Observability: Configurable structured logging (text/json), per-request X-Request-ID correlation IDs, /healthz + /readyz probes, and an optional Prometheus /metrics endpoint.
  • Security: Security response headers, optional rate limiting, and safe defaults.
  • Database: SQLAlchemy 2.0 + Alembic integration and migration scaffolding.
  • Typed + Testable: Ships py.typed, and a reusable zecmf.testing.plugin pytest plugin (app/client/db/token fixtures).
  • Configuration: Hierarchical config with framework defaults and app overrides.

Installation

pip install zecmf                       # core (web APIs, auth, DB)
pip install "zecmf[celery]"             # + background tasks
pip install "zecmf[clients]"            # + LLM/HTTP clients
pip install "zecmf[celery,clients]"     # 0.1-equivalent superset
# optional: zecmf[ratelimit], zecmf[metrics]

Debugging

If you want to include the code in your application for debugging purposes, you can simply mount it:

    volumes:
      - ${HOME}/Repos/Zecure/zecmf/src/zecmf:/home/appuser/.local/lib/python3.12/site-packages/zecmf:ro

Metadata

Release files for zecmf 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 zecmf 0.3.0
File Size Uploaded Provenance Actions
zecmf-0.3.0.tar.gz 217.3 kB With provenance Details for zecmf-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 384.1 kB

Release files / zecmf-0.3.0.tar.gz

Download URL zecmf-0.3.0.tar.gz
Size 217.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fe070999103bbf0c8acac518740d29d7eb34a54235dbc7a974fba74a30a7a7b4
BLAKE2b-256 checksum
How to use checksums
27a37f796ffdcb13f373343499d811903a60b9e3d2ff4f8d63c660702a2c937c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Aug 20, 2026.

Transparency log

Release files / zecmf-0.3.0-py3-none-any.whl

Download URL zecmf-0.3.0-py3-none-any.whl
Size 166.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13d289244e3386481c92ae1e1a6d8fcc5a2dcd0542e98eda4dfc22cacc4322c7
BLAKE2b-256 checksum
How to use checksums
fd13a871a031946fc2c4c09fb367c4eaac58a822f6db46ec3634ca21e9ab0d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Aug 20, 2026.

Transparency log

Security for zecmf 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.

Full provenance

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

Select from 2 files

Attestation for zecmf-0.3.0.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 Aug 20, 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

0.3.0 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