Skip to main content

Allows to interact easily with the Odin API and access various cybersecurity services, certificate information, and more.

Project description

Odin SDK for Python

ODIN's primary focus is to equip infosec teams with a precise depiction of the internet, enabling them to strengthen their security defences and proactively detect threats within their attack surface.

The Odin SDK for Python allows you to easily interact with the Odin API and access various cybersecurity services, certificate information, and more.

Installation

To use the Odin SDK in your Python project, you need to install it using pip:

pip install odin-sdk-python

⚠️ Important Note for macOS Users: We recommend using a newer version of the Python interpreter, such as the one installed via Homebrew, to ensure compatibility and avoid potential issues related to the legacy SSL library bundled with the default macOS Python interpreter.

Examples

Here is the Example, you can find various usage examples demonstrating how to interact with the Odin API using the odin-sdk-python package.

Each example is a standalone Python program that showcases specific functionalities of the SDK.

from odin import OdinClient, APIException

client = OdinClient("https://api.getodin.com/v1", "<APIKey>")

def ex_hosts_count():
    # Example for using get_hosts_count
    try:
        response = client.get_hosts_count("string")
        print(response.success)
        print(response.data.count)
        
    except APIException as e:
        print(e.status_code)
        print(e.message)

Make sure to replace <APIKey> with your actual Odin API key.

Thank you for using the Odin SDK for Python. If you encounter any issues, find a bug, or want to contribute, feel free to open an issue or submit a pull request. Your feedback and contributions are highly appreciated!

For more information about our other projects and services, visit our website at https://www.getodin.com.

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

odin_sdk_python-0.0.12.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

odin_sdk_python-0.0.12-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

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