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

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.2.3
File Size Uploaded Provenance Actions
zecmf-0.2.3.tar.gz 137.1 kB With provenance Details for zecmf-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 229.1 kB

Release files / zecmf-0.2.3.tar.gz

Download URL zecmf-0.2.3.tar.gz
Size 137.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ee8329486126538a521c5391b65ee7b05e02d2d74a8a61f155ec37ffaa85a35a
BLAKE2b-256 checksum
How to use checksums
f6003687310a5325c4800d75d672badba3fbc05556279970c1381402856d1ce4
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 Jul 23, 2026.

Transparency log

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

Download URL zecmf-0.2.3-py3-none-any.whl
Size 92.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
562ccf26a084c8da7de2819e19cdecedb0d8e2c1bfa98bf860a9ad63e14f9bf8
BLAKE2b-256 checksum
How to use checksums
4504fa1fc6ae97094fb2545ffc49cebd5148496db48ba9ebf141c0d08e215bb5
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 Jul 23, 2026.

Transparency log

Security for zecmf 0.2.3

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.2.3.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 Jul 23, 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.2.3 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