Skip to main content

dimma

Declarative security middleware for Python/Flask projects, configured with a shared security.dimma file.

Install

python -m pip install dimma

For Redis-backed shared rate limiting, install dimma[redis].

Quick start

from flask import Flask
from dimma.engine import DimmaEngine

app = Flask(__name__)
app.config["SECRET_KEY"] = "load-a-random-secret-from-your-environment"

dimma = DimmaEngine("./security.dimma")
dimma.protect(app)

Create a configuration with dimma init. For CLI commands, configuration options, security boundaries, and Node.js usage, see the project README in the public GitHub repository.

dimma scan performs heuristic static checks; it is not an active DAST/pentest scanner or a security certification.

Metadata

Release files for dimma 1.0.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 dimma 1.0.0
File Size Uploaded Provenance
dimma-1.0.0.tar.gz 25.7 kB With provenance Details

Built distribution (wheel)

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

Total release size: 54.7 kB

Release files / dimma-1.0.0.tar.gz

Download URL dimma-1.0.0.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
57f2ea4bb56270d2ca7716d130d648424131cd9e4c8cfc7ee26def7b89c188cb
BLAKE2b-256 checksum
How to use checksums
c54bc127d08a8b55c9d01c78487eb0458c79e41b5d14c059cdd43d3113f8d8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 4, 2026.

Transparency log

Release files / dimma-1.0.0-py3-none-any.whl

Download URL dimma-1.0.0-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c04c0c1dc8350c488ac7bd2561187a3ec278e9dc234eb79ec7f4a2943ed8f930
BLAKE2b-256 checksum
How to use checksums
e92bd45bde11f2ed2f3f8c0e39d2610036700a62fa9edd0962b9d44c784b42dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 4, 2026.

Transparency log

Security for dimma 1.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dimma-1.0.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 Oct 4, 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

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