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
-
Add a Test PyPi repository:
poetry config repositories.test-pypi https://test.pypi.org/legacy/
-
Get the token from https://test.pypi.org/manage/account/token/.
-
Store the token:
poetry config pypi-token.test-pypi pypi-XXXXXXXX
-
Publish:
poetry publish --build -r test-pypi
Publish to PyPI
-
Get the token from https://pypi.org/manage/account/token/.
-
Store the token:
poetry config pypi-token.pypi pypi-XXXXXXXX
-
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
Built Distribution
File details
Details for the file tenzir-4.24.0.tar.gz
.
File metadata
- Download URL: tenzir-4.24.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.20 Linux/5.15.0-1074-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157aa17e15f74576e36a9e7764e1debfc6160accbe2b45c4178e623937c30c65 |
|
MD5 | 7bc70bd6e6f242e08325e79080231876 |
|
BLAKE2b-256 | 566897609fb10ea5ab79bfcbe44a9a43d192bbb899c37396ca10987bbd35706d |
File details
Details for the file tenzir-4.24.0-py3-none-any.whl
.
File metadata
- Download URL: tenzir-4.24.0-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.20 Linux/5.15.0-1074-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4134566b0590a029f21b562144bd618a10e0a4c15b032040c61a98ecbdb7cc59 |
|
MD5 | a85b6a591c29e2669e4a092b002f9bd1 |
|
BLAKE2b-256 | 10abd78421ef899e092ee0672c40331d9dea1203a31bf6fa6ac1a83fcc7f0b5d |