Installation¶
Python 3.10 or newer. The base package depends on pydantic and nothing else.
Optional extras¶
Text, JSON, CSV, XML, EML, and MBOX need no extra. Install a reader only for the formats you use. A missing extra raises OptionalDependencyError with the install command. It does not affect text extraction.
One extra, several at once, or all of them:
| Input | Extra | Package |
|---|---|---|
| Text, JSON, CSV, XML, EML, MBOX | none | standard library |
HTML (.html, .htm) |
html |
beautifulsoup4 |
PDF (.pdf, including page numbers) |
pdf |
pymupdf |
DOCX (.docx) |
docx |
python-docx |
YAML (.yaml, .yml) |
yaml |
pyyaml |
PCAP (.pcap, .pcapng) |
pcap |
scapy |
docs installs MkDocs Material and mkdocstrings. dev installs pytest, mypy, and ruff.
Extraction results are pydantic models. indicator.type is an IOCType member.
From a checkout¶
To preview this site:
The published site is https://ahur4.github.io/Qarbaal/.