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

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.4
File Size Uploaded Provenance Actions
zecmf-0.2.4.tar.gz 148.1 kB With provenance Details for zecmf-0.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 247.6 kB

Release files / zecmf-0.2.4.tar.gz

Download URL zecmf-0.2.4.tar.gz
Size 148.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9cfdbaaf616f7de514b3dcafc3607d9b0a52b502a6360ce3789b3288a122c2a
BLAKE2b-256 checksum
How to use checksums
47c164c073a2c643957fb826d378e4cae1cf1583a12f7d3b4d807fc5d6e59aab
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 13, 2026.

Transparency log

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

Download URL zecmf-0.2.4-py3-none-any.whl
Size 99.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b76909f5b3914df1ab1cf8ed6bbaaf95629234360e99a372f8ba82c23b37eb32
BLAKE2b-256 checksum
How to use checksums
dcfaea9d311d735b9d5b5582ed0c4e5a204cb0350ba4108d1e91ce9e2328ab7b
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 13, 2026.

Transparency log

Security for zecmf 0.2.4

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.4.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 13, 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.4 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