Skip to main content

A Python API wrapping services of the Superb Data Kraken (SDK)

Project description

SDK-API

SDK-API is a simple library to access various services of the superb data kraken (SDK) platform.

It is primarily intended to be used in an jupyter hub environment within the platform itself, but can be configured for different environments as well.

Installation and Supported Versions

$ python -m pip install sdk-api

SDK-API officially supports Python 3.7+.

Usage

Usage from a jupyter-notebook running within an instance of the SDK. this presumes access/refresh tokens are accessible via variables of the executing environment (SDK_ACCESS_TOKEN, SDK_REFRESH_TOKEN).

>>> import sdk.api
>>> client = sdk.api.SDKClient()
>>> organizations = client.get_all_organizations()

with explicit login:

>>> import sdk.api
>>> sdk.api.SDKClient(username='hasslethehoff', password='lookingforfreedom')
>>> organizations = client.get_all_organizations()

Configuration

by default everything is configured for usage with the default instance of the SDK and comes with settings for various different instances.

overwriting settings:

>>> client = sdk.api.SDKClient(domain='mydomain.ai', client_id='my-client-id', api_version='v13.37')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdk-api-0.1.1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

sdk_api-0.1.1-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

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