This release is a pre-release and may not be stable for production use.
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
See releases for the
different versions.
The release 1.3.1-0 will be mapped to 1.3.1.post0.
Documentation
from l9format import l9format
l9format.L9Event.from_dict(res)
Versioning
The versions will be synced with l9format,
suffixed by a number for bug fixes in the python implementation specifically.
For instance, 1.3.1-0 will be the first version for 1.3.1 and follow
https://github.com/LeakIX/l9format/releases/tag/v1.3.1. If a change is required
for the Python package, but is the same specification than the Go
implementation, the next release will be 1.3.1-1.
The version can be verified using
import l9format
l9format.__version__
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file l9format-1.3.1a4.tar.gz.
File metadata
- Download URL: l9format-1.3.1a4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3332a64fc24ad3cab436d72a13215a2e04f62dd273328a3de77d5ecfa1b051e7
|
|
| MD5 |
9590b33f6d7b2227d27661ebc51cf0b9
|
|
| BLAKE2b-256 |
8d586dff5c2172ff092f91b4660e1dd341d23e4ddac533aeafafd1b56aa87d8f
|
File details
Details for the file l9format-1.3.1a4-py3-none-any.whl.
File metadata
- Download URL: l9format-1.3.1a4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f2bfdb89eb9e532bccca38ceee6afe65fbd1520588165cd735e0ffcef0b3ca3
|
|
| MD5 |
0b716ead34f3be0df876e39fb2e726dc
|
|
| BLAKE2b-256 |
d735efb845f7a6b188999a366da3c09718408feca125f6fd0b7833c02d707f6f
|