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
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
konan-sdk-1.4.1.tar.gz
(16.4 kB
view hashes)
Built Distribution
konan_sdk-1.4.1-py3-none-any.whl
(21.2 kB
view hashes)
Close
Hashes for konan_sdk-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d637f27c503340a0d283f2695f81f53301525a5b59e99101a50fef62c14725 |
|
MD5 | bc00ee67cf6ca7fefdc84053f1b720fc |
|
BLAKE2b-256 | 5aa8e3b6524bb538851552d8afb2d913fa157358d8cefb395dc735e890d6d5bb |