Skip to main content
Pre-release

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

l9format-1.3.1a4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

l9format-1.3.1a4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for l9format-1.3.1a4.tar.gz
Algorithm Hash digest
SHA256 3332a64fc24ad3cab436d72a13215a2e04f62dd273328a3de77d5ecfa1b051e7
MD5 9590b33f6d7b2227d27661ebc51cf0b9
BLAKE2b-256 8d586dff5c2172ff092f91b4660e1dd341d23e4ddac533aeafafd1b56aa87d8f

See more details on using hashes here.

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

Hashes for l9format-1.3.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f2bfdb89eb9e532bccca38ceee6afe65fbd1520588165cd735e0ffcef0b3ca3
MD5 0b716ead34f3be0df876e39fb2e726dc
BLAKE2b-256 d735efb845f7a6b188999a366da3c09718408feca125f6fd0b7833c02d707f6f

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.1

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1.post0

2 files

This release

1.3.1a4 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page