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.2.tar.gz
(10.4 kB
view hashes)
Built Distribution
konan_sdk-1.2.2-py3-none-any.whl
(13.9 kB
view hashes)
Close
Hashes for konan_sdk-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0d5269f1bbc054dad7bb42232278f447afa9e33a5a55efaa90f178cda14a6a |
|
MD5 | 20d666e0f7ae1194461e8d8d8fd2d170 |
|
BLAKE2b-256 | 09b49afbe0a0dd546c2e2e960ba73261ace596ef5d8c0f776e12cf36e3f9b163 |