Installation
libtaxii’s test suite runs on Python 3.10 through 3.14. Use a virtual environment to keep libtaxii and its dependencies separate from other projects.
Install a published release
With uv installed, create and activate a virtual environment with a Python version supported by the release you need:
uv venv
source .venv/bin/activate
uv pip install misp-libtaxiiOn Windows PowerShell, activate it with .venv\Scripts\Activate.ps1. If you use pip, run python -m pip install misp-libtaxii in your environment. The MISP distribution provides the libtaxii import and the existing CLI commands. Use a fresh environment when switching from the upstream distribution because both packages install the same files.
Install and run from a checkout
From the repository root, install the local source in editable mode:
uv venv --python 3.14
source .venv/bin/activate
uv pip install -e .
python -c "import libtaxii; print(libtaxii.__version__)"
discovery_client --helpTo run the discovery client’s help directly from the checkout in a temporary tool environment, use:
uv tool run --python 3.14 --from . discovery_client --helpTo query a TAXII 1.1 discovery service, substitute your server’s discovery URL and the CA bundle used to verify it:
discovery_client --url https://taxii.example.org/taxii-discovery-service \
--verify-server /path/to/ca-bundle.pemSee command-line clients for the available commands and arguments. To install the development tools and run the test suite in your virtual environment:
uv pip install -r requirements.txt
python -m pytest libtaxiiDependencies
The installer resolves lxml, python-dateutil, and six automatically. If your platform has no prebuilt lxml wheel, see the lxml build prerequisites.