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


Release history Release notifications | RSS feed

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.10.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tenzir-4.10.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenzir-4.10.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.13 Linux/5.15.0-1057-azure

File hashes

Hashes for tenzir-4.10.1.tar.gz
Algorithm Hash digest
SHA256 8ff9d02a1f5f49b2cd99e84c7eb8a40db2923abc14b028183e25987d13120ca5
MD5 46edcae725e26100cbcdf327ead0beea
BLAKE2b-256 91bb3e36e466853aecdd937a34e925d6515cf77c952557475d32f0541c0ecbab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tenzir-4.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f79822502f9d08b83a60805c28642ba38368e3ed8aaa2189007a08a58c3df6c
MD5 3780db3299e4fbee044b14254a5e7806
BLAKE2b-256 a269993dd97ad5c6eede4615af5dd85c823576bb131cb2579f7c5d8a62927255

See more details on using hashes here.

Supported by

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