Skip to main content

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
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

# Or upload from hosted resources
files = [{
            "data": "",
            "externalId": "111"
            "data": "",
            "externalId": "112"
response = sdk.upload_files_cloud("61f8d94a79002950df12234a", files)  # With Project ID

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)

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

ango-1.1.6.tar.gz (8.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page