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.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.2.0
File Size Uploaded Provenance Actions
zecmf-0.2.0.tar.gz 109.2 kB With provenance Details for zecmf-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 184.2 kB

Release files / zecmf-0.2.0.tar.gz

Download URL zecmf-0.2.0.tar.gz
Size 109.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f0151178e189ae420482be5eb45ba46762b0b2b71777d8b7c4748907af8ee2fa
BLAKE2b-256 checksum
How to use checksums
ecb7d31675c8274f91c4cb3233836256ea83a6d4ff1fb5ae1658ae40699a48f6
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 Jul 10, 2026.

Transparency log

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

Download URL zecmf-0.2.0-py3-none-any.whl
Size 75.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ac4078d73e968f691a6f1a92e1c4ba76792cdb36142eeb42aa6bd1b93e5e00a
BLAKE2b-256 checksum
How to use checksums
c0bc21c7fc09526ab1f6ccdfa9d57c0fd80a134c4d7e298a87ed6653d839951f
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 Jul 10, 2026.

Transparency log

Security for zecmf 0.2.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.2.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 Jul 10, 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.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