Skip to main content

Tenzir Python

The Python package of Tenzir provides a flexible control plane to integrate Tenzir with other security tools.

Note The Python effort is still highly experimental and subject to rapid change. Please do not consider it for production use.

Usage

To get started, clone the Tenzir repository and install the Python package via Poetry:

git clone https://github.com/tenzir/tenzir.git
cd tenzir/python
poetry install

Development

We recommend that you work with an editable installation, which is the default for poetry install.

Unit Tests

Run the unit tests via pytest:

poetry run pytest

Integration Tests

Run the integrations tests via Docker Compose and pytest:

./docker-poetry-run.sh pytest -v

Packaging

The following instructions concern maintainers who want to publish the Python package to PyPI.

Note Our releasing scripts and CI run these steps automatically. You do not need to intervene anywhere. The instructions below merely document the steps taken.

Bump the version

Prior to releasing a new version, bump the version, e.g.:

poetry version 2.3.1

This updates the pyproject.toml file.

Publish to Test PyPI

  1. Add a Test PyPi repository:

    poetry config repositories.test-pypi https://test.pypi.org/legacy/
    
  2. Get the token from https://test.pypi.org/manage/account/token/.

  3. Store the token:

poetry config pypi-token.test-pypi pypi-XXXXXXXX
  1. Publish:

    poetry publish --build -r test-pypi
    

Publish to PyPI

  1. Get the token from https://pypi.org/manage/account/token/.

  2. Store the token:

poetry config pypi-token.pypi pypi-XXXXXXXX
  1. Publish

    poetry publish --build
    

Metadata

Release files for pytenzir 4.5.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 pytenzir 4.5.0
File Size Uploaded Provenance
pytenzir-4.5.0.tar.gz 13.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 27.7 kB

Release files / pytenzir-4.5.0.tar.gz

Download URL pytenzir-4.5.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7620683fbfd9409c1757aafa437a2f03856260521da067b355548510e29c5909
BLAKE2b-256 checksum
How to use checksums
b8569462ea91009e92b73b21fe021acc0889aa4b93bd08afba1b4b8222a2fd1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.13 Linux/5.15.0-1050-azure

Release files / pytenzir-4.5.0-py3-none-any.whl

Download URL pytenzir-4.5.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
009c76cdc1694cc51ce1f3737afcf1848c88752d0c229169cf0e77054c098c00
BLAKE2b-256 checksum
How to use checksums
9ab53864f33502cf681bcb316c52b824ddfe57f23504e50a18434ab25f960d07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.13 Linux/5.15.0-1050-azure

Security for pytenzir 4.5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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