Official python client for LeakIX (https://leakix.net)
Project description
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:
Project details
Release history Release notifications | RSS feed
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 leakix-1.1.0.tar.gz.
File metadata
- Download URL: leakix-1.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e003503b6b8f15e75c9a9e065b5dcd7a3e59581eab3974c53f3468ea2acb1cf9
|
|
| MD5 |
0bbbbc18427966e4e8130945ea5e60bd
|
|
| BLAKE2b-256 |
ac55d61e4c5c59f5f61ff7c7540768092a8cdb56eea5d53a94f1165480045f5d
|
File details
Details for the file leakix-1.1.0-py3-none-any.whl.
File metadata
- Download URL: leakix-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
770070a7a76db17e19fc969a4aaa7bb210314e6bc9bb98825206da06d6e502df
|
|
| MD5 |
94bc4efdf0d07d8b791086d4699c8d22
|
|
| BLAKE2b-256 |
260afb9cbbb654bebad5e01f4655aee5418bc9bf307284c4bf0fc7297db2c332
|