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.2.6.tar.gz
(11.7 kB
view hashes)
Built Distribution
konan_sdk-1.2.6-py3-none-any.whl
(15.3 kB
view hashes)
Close
Hashes for konan_sdk-1.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e3bb97c6637866cb3055639b40f83f27fbf75c3067c147c2601dd07d5a5d2a |
|
MD5 | c12a6e4a321e3efb5dc4a0d645e7c8fb |
|
BLAKE2b-256 | f18c6b90c5f133c94c38aa6597e986b5d2ab4c199d231df5c6fa0ebc3ec26121 |