Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.25 KB

File metadata and controls

68 lines (45 loc) · 1.25 KB

l9format python

PyPI GitHub Release

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.

Tools and Usage

Running Tests

We use pytest for testing. Run the tests with:

poetry run pytest

Code Formatting

We use black for code formatting. To format the code, run:

poetry run black .

Import Sorting

We use isort to sort imports. To sort imports, run:

poetry run isort .

Code Linting

We use ruff for linting. Run:

poetry run ruff check .

Install

pip install l9format

Or with a specific version:

pip install l9format==1.4.0

See PyPI and GitHub releases for all available versions.

Documentation

from l9format import l9format
l9format.L9Event.from_dict(res)