The Python package of VAST provides a flexible control plane to integrate VAST 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.
To get started, clone the VAST repository and install the Python package via Poetry:
git clone https://github.com/tenzir/vast.git
cd vast/python
poetry install
We recommend that you work with an editable installation, which is the default
for poetry install
.
Run the unit tests via pytest:
poetry run pytest
Run the integrations tests via Docker Compose and pytest:
./docker-poetry-run.sh pytest -v
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.
Prior to releasing a new version, bump the version, e.g.:
poetry version 2.3.1
This updates the pyproject.toml
file.
-
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
-
Get the token from https://pypi.org/manage/account/token/.
-
Store the token:
poetry config pypi-token.pypi pypi-XXXXXXXX
-
Publish
poetry publish --build