l9format is a schema declaration targeted at interoperability between network recon tools used at LeakIX.
This library is equivalent to l9format which provides a Go implementation.
We use pytest
for testing. Run the tests with:
poetry run pytest
We use black
for code formatting. To format the code, run:
poetry run black .
We use isort
to sort imports. To sort imports, run:
poetry run isort .
We use ruff
for linting. Run:
poetry run ruff check .
See releases for the
different versions.
The release 1.3.1-0
will be mapped to 1.3.1.post0
.
from l9format import l9format
l9format.L9Event.from_dict(res)