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.

Starting with dimma 1.0.1, run dimma styles from your project directory to install the bundled icon and syntax extension in detected VS Code/Cursor installations and set workbench.iconTheme in that project's .vscode/settings.json. It does not change global editor settings. If the settings file uses JSONC comments instead of strict JSON, the command stops without modifying it. Package installation itself never changes the IDE.

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

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.1
File Size Uploaded Provenance
dimma-1.0.1.tar.gz 34.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 71.7 kB

Release files / dimma-1.0.1.tar.gz

Download URL dimma-1.0.1.tar.gz
Size 34.6 kB
Tags Source
SHA-256 checksum
How to use checksums
75b6cbcab6a85f5bdc4525194c6601d14e68c2bd5f30f0514021ae2d58c21b43
BLAKE2b-256 checksum
How to use checksums
74c7db2ab7f5c482d3863495472eb291d31f7b2312fd9d0c1e35afd4ce6f9df0
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.1-py3-none-any.whl

Download URL dimma-1.0.1-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c75443e5716f1137680b0ec98b6fdef9304703e96f107e430a537beb377d7e66
BLAKE2b-256 checksum
How to use checksums
dd9b3dac45a52642bf4576eb7be3174ed198bec7dec851ed2387164b9660254e
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.1

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