Skip to main content

Official python client for LeakIX (https://leakix.net)

Project description

LeakIX python client

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leakix-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

leakix-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file leakix-1.0.0.tar.gz.

File metadata

  • Download URL: leakix-1.0.0.tar.gz
  • Upload date:
  • Size: 10.0 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

Hashes for leakix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 821a46a9e6eb3eeda1edfebac6b5baed459d53eeac2ec665adc645e3de65647e
MD5 974af17152ae3cb35ecd4eed0a3c3c0d
BLAKE2b-256 50ee5319f74c28f8679bd95003ebbf8f0802480c7586c8797a6561917f98d63a

See more details on using hashes here.

File details

Details for the file leakix-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: leakix-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 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

Hashes for leakix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e88e06cca119501a48dd5360efca0e5be13b7be46c7600021229100a5e90d2ee
MD5 397ede35a07efabffd121c9a3db6b41d
BLAKE2b-256 a387b37f6d59acff692ad610e40c2328c79245befac5b64e66d4b54e4c8c2700

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page