l9format python
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)
Metadata
Release files for l9format 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| l9format-2.0.1.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| l9format-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / l9format-2.0.1.tar.gz
| Download URL | l9format-2.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f86a1447d1cc32bfa85b6d030cd404667685e4acbc216c751f304fbd9a1d914c
|
|
BLAKE2b-256 checksum How to use checksums |
96f573e8a6eb309a485ed5f5b4d9eebfe6f604c0760daaadfd8ac33c94f2dacd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / l9format-2.0.1-py3-none-any.whl
| Download URL | l9format-2.0.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f977b6f4cd110c7c91bd9e41e4057a2d8149429b65d0d0da824e7084e623d2b
|
|
BLAKE2b-256 checksum How to use checksums |
1ef45c75ff56752282d70af4a9c4c5a565f477efd4ab53ae91ffcc9bc1b1789b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|