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.2.tar.gz
(16.8 kB
view hashes)
Built Distribution
konan_sdk-1.4.2-py3-none-any.whl
(23.1 kB
view hashes)
Close
Hashes for konan_sdk-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fef191d59ab633a4d13f21d138ebb69d07cc05d40bf3c215d6ec222fb1581586 |
|
MD5 | e3d1ae65802e81caf19de73d1927f6c1 |
|
BLAKE2b-256 | 37268995a416bbdb32118e1eecd9a701db6bc082ee1d0a1fb84847a683ca5a36 |