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.3.0.tar.gz
(14.4 kB
view hashes)
Built Distribution
konan_sdk-1.3.0-py3-none-any.whl
(18.6 kB
view hashes)
Close
Hashes for konan_sdk-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8d2bb88ca6402ac87ffabfaf6c369e53ec6aefb3647a2dc7a3c1b7fe344a76 |
|
MD5 | 7523b2040687b3d79d66fdfbb8d77feb |
|
BLAKE2b-256 | 8d70be34f74f404cad83eac195cc8e5f3bed3c5c170787986a2fad4a6e6f880f |