Skip to main content

Python SDK for Konan's API

Project description

Getting Started

from konan_sdk.sdk import KonanSDK

if __name__ == '__main__':
    # Initialize the SDK. Set verbose to True if you want verbose logging.
    sdk = KonanSDK(verbose=False)

    # Login user your valid konan credentials
    user = sdk.login("<email>", "<password>")

    # Define the input data to be passed to your model
    input_data = {"feature_1": 1, "feature_2": "abc", }

    # Run the prediction
    prediction_uuid, ml_output = sdk.predict("<deployment_uuid>", input_data)

    # Print the returned output
    print(prediction_uuid, ml_output)

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

konan_sdk-1.6.0.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

konan_sdk-1.6.0-py3-none-any.whl (23.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