LeakIX python client
Supported Python versions: 3.11, 3.12, 3.13, 3.14
Official LeakIX python client
Install
pip install leakix
To run tests, use make test.
Documentation
Docstrings are used to document the library. Types are also used to inform the user on what type of objects the functions are expecting.
Each API response is encoded in either a SuccessResponse object or a
ErrorResponse.
The methods is_success() or is_error() exist on each API response.
You can get the actual response by using the method json() on the response object.
The output are events described in
l9format.
When you have an object of type l9Event (or the longer
l9format.l9format.L9Event), you can refer to
L9Event
model class for the available fields.
For instance, to access the IP of an object event of type L9Event, you can
use event.ip.
Each object can be transformed back into a Python dictionary/JSON using the method to_dict().
For instance, for the response of the subdomains endpoint, you can get back individual JSON by using:
def example_get_subdomains():
response = CLIENT.get_subdomains("leakix.net")
for subdomain in response.json():
print(subdomain.to_dict())
Support
Feel free to open an issue if you have any question.
You can also contact us on support@leakix.net.
If you need commercial support, have a look at https://leakix.net/plans.
Examples
See the example/ directory for complete usage examples:
Metadata
Release files for leakix 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leakix-1.1.0.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leakix-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.5 kB
Release files / leakix-1.1.0.tar.gz
| Download URL | leakix-1.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e003503b6b8f15e75c9a9e065b5dcd7a3e59581eab3974c53f3468ea2acb1cf9
|
|
BLAKE2b-256 checksum How to use checksums |
ac55d61e4c5c59f5f61ff7c7540768092a8cdb56eea5d53a94f1165480045f5d
|
| 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 / leakix-1.1.0-py3-none-any.whl
| Download URL | leakix-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
770070a7a76db17e19fc969a4aaa7bb210314e6bc9bb98825206da06d6e502df
|
|
BLAKE2b-256 checksum How to use checksums |
260afb9cbbb654bebad5e01f4655aee5418bc9bf307284c4bf0fc7297db2c332
|
| 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}
|