Skip to main content

Aikido Zen for Python 3

Zen, in-app firewall for Python 3 | by Aikido

Codecov PyPI Package Code Style : Black Unit tests End to end tests

Zen, your in-app firewall for peace of mind– at runtime.

Zen is an embedded Web Application Firewall that autonomously protects your Python apps against common and critical attacks.

Zen protects your Python apps by preventing user input containing dangerous strings, which allow SQL injections. It runs on the same server as your Python app for simple installation and zero maintenance.

Features

Zen will autonomously protect your Python applications from the inside against:

Zen operates autonomously on the same server as your Python app to:

  • ✅ Secure your app like a classic web application firewall (WAF), but with none of the infrastructure or cost.

Supported libraries and frameworks

Zen for Python 3 is compatible with:

WSGI

  • ✅ Django
  • ✅ Flask >=2.2.4 (tested: 2.2.4, 2.3.3, 3.0.0, 3.1.0, 3.1.3)

WSGI Servers

ASGI

Database drivers

AI SDKs

Zen instruments the following AI SDKs to track which models are used and how many tokens are consumed, allowing you to monitor your AI usage and costs:

Zen is compatible with Python 3.8-3.15 and can run on Linux, Mac OS X, and Windows.

Installation

We recommend testing Zen locally or on staging before deploying to production.

pip install aikido_zen
# or
poetry add aikido_zen
# or
uv add aikido_zen

For framework-specific instructions, check out our docs:

Guides

Reporting to your Aikido Security dashboard

Aikido is your no nonsense application security platform. One central system that scans your source code & cloud, shows you what vulnerabilities matter, and how to fix them - fast. So you can get back to building.

Zen is a new product by Aikido. Built for developers to level up their security. While Aikido scans, get Zen for always-on protection.

You can use some of Zen’s features without Aikido, of course. Peace of mind is just a few lines of code away.

But you will get the most value by reporting your data to Aikido.

You will need an Aikido account and a token to report events to Aikido. If you don't have an account, you can sign up for free.

Here's how:

  • Log in to your Aikido account.
  • Go to Zen.
  • Go to apps.
  • Click on Add app.
  • Choose a name for your app.
  • Click Generate token.
  • Copy the token.
  • Set the token as an environment variable, AIKIDO_TOKEN

Running in production (blocking) mode

By default, Zen will only detect and report attacks to Aikido.

To block requests, set the AIKIDO_BLOCK environment variable to true.

See Reporting to Aikido to learn how to send events to Aikido.

Additional configuration

Configure Zen using environment variables for authentication, mode settings, debugging, and more.

License

This program is offered under a commercial and under the AGPL license. You can be released from the requirements of the AGPL license by purchasing a commercial license. Buying such a license is mandatory as soon as you develop commercial activities involving the Zen software without disclosing the source code of your own applications.

For more information, please contact Aikido Security at this address: support@aikido.dev or create an account at https://app.aikido.dev.

Benchmarks

We run a benchmark on every commit to ensure Zen has a minimal impact on your application's performance.

See benchmarks

Bug bounty program

Our bug bounty program is public and can be found by all registered Intigriti users here

Contributing

See CONTRIBUTING.md for more information.

Code of Conduct

See CODE_OF_CONDUCT.md for more information.

Security

See SECURITY.md for more information.

Metadata

Release files for aikido-zen 1.2.38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aikido-zen 1.2.38
File Size Uploaded Provenance Actions
aikido_zen-1.2.38.tar.gz 17.2 MB With provenance Details for aikido_zen-1.2.38.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aikido-zen 1.2.38
File Interpreter ABI Platform Actions
aikido_zen-1.2.38-py3-none-any.whl Python 3 none any Details for aikido_zen-1.2.38-py3-none-any.whl

Total release size: 34.6 MB

Release files / aikido_zen-1.2.38.tar.gz

Download URL aikido_zen-1.2.38.tar.gz
Size 17.2 MB
Tags Source
SHA-256 checksum
How to use checksums
2966e1f51926a2e2001fa9bdbc969957e5d992071924f848c48733304111ccec
BLAKE2b-256 checksum
How to use checksums
ecb0f9c19d574567bc2ed52fecc0e21261e3ab0c17a3f79165051f3cb604cbbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / aikido_zen-1.2.38-py3-none-any.whl

Download URL aikido_zen-1.2.38-py3-none-any.whl
Size 17.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
279ba61d763813ae6c749b52197b99032f75e46b4746e55ac398306c1b05a0a0
BLAKE2b-256 checksum
How to use checksums
f4c75f40d23bf72158d534364509c30d91fd369e15cd71c81a421f40384cd737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for aikido-zen 1.2.38

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 aikido_zen-1.2.38.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 Nov 12, 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.2.38 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