Ango-Hub SDK
Project description
For using API functionalities of Ango-Hub platform.
from ango.sdk import SDK
# Init SDK with API key for detailed functioanlities of Ango API https://docs.ango.ai/api/api-documentation
sdk = SDK(api_key="10541bc8-bed8-4775-8ffc-323eabfcc9ae")
# Upload from local files
files = ["/home/ofk/Pictures/samples/0003.DCM", "/home/ofk/Pictures/samples/0009.DCM"]
response = sdk.upload_files("61f8d94a79002950df12234a", files) # With Project ID
print(response)
# Or upload from hosted resources
files = [{
"data": "https://i.imgur.com/OB0y6MR.jpg",
"externalId": "111"
},
{
"data": "https://i.imgur.com/CzXTtJV.jpg",
"externalId": "112"
}]
response = sdk.upload_files_cloud("61f8d94a79002950df12234a", files) # With Project ID
print(response)
For developing custom plugins that can be integrated to Ango-Hub platform.
from ango import plugin
# Create callback function for your plugin.
# Input and output definitions are set on Ango-Hub on plugin register
def callback(data):
result = model(data)
return result
p = plugins.Plugin("<YOUR_PLUGIN_ID>", "<YOUR_API_KEY>", callback)
plugin.run(p)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file imerit_ango-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: imerit_ango-1.2.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea4b25e61af4391c4f165dc95f9cb98c5f4603e0e3ea1e79d6022ea071f616f |
|
MD5 | 26e3e1751725845ee1bea379c0dda757 |
|
BLAKE2b-256 | 3469b57222c1b0ad22b48134ccdf5b5b76d7668bc447a4b078dc07bf85f56500 |