Skip to main content

A security telemetry engine for detection and response

Project description

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 -E module

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tenzir-4.20.3.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

tenzir-4.20.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file tenzir-4.20.3.tar.gz.

File metadata

  • Download URL: tenzir-4.20.3.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/5.15.0-1071-azure

File hashes

Hashes for tenzir-4.20.3.tar.gz
Algorithm Hash digest
SHA256 1cfd484f935904483c658323c7ffb6f2ddece330cab92c7569f5c9c9c9c73617
MD5 8c7a405e40960c4b084d50f545ebeb2c
BLAKE2b-256 0ece980b42f6e76508ea37a3fe1635dfaefb108d1f73ee17363238e6f85f6987

See more details on using hashes here.

File details

Details for the file tenzir-4.20.3-py3-none-any.whl.

File metadata

  • Download URL: tenzir-4.20.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.19 Linux/5.15.0-1071-azure

File hashes

Hashes for tenzir-4.20.3-py3-none-any.whl
Algorithm Hash digest
SHA256 377b34608156115f2f54e43fcbd0159cd6a12be092d6395e0f29de8f1358e910
MD5 83e6ed3796afb48c70efb297d4ff9abb
BLAKE2b-256 37e977cfd01d72092694482af7c345c1f3b48e980f973b47e5262f85ef73fbc0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page