Skip to main content

Ionburst SDK for Python

Project description

Ionburst SDK for Python Gitter

The Ionburst SDK for Python enables Python developers to easily work with Ionburst and build ultra-secure and private storage into their applications.

Getting Started

Installation

pip3 install ionburst-sdk-python

Configuration

The Ionburst SDK can get its configuration (ionburst_id, ionburst_key, ionburst_uri) from the following three files.

If ionburst_id and ionburst_key are not specified by environment variable, they are obbtained from the credentials file with information from the config.json file.

If ionburst_uri is not specified in Ionburst constructor, it'll first check config.json, and then the credentials file.

Environment Variables

IONBURST_ID=IB******************
IONBURST_KEY=eW91aGF2ZXRvb211Y2h0aW1lb255b3VyaGFuZHMh

config.json file

{
  "Ionburst": {
    "Profile": "test",
    "IonBurstUri": "https://api.example.ionburst.io/",
    "TraceCredentialsFile": "OFF",
  }
}

Credentials file

[example]
ionburst_id=IB******************
ionburst_key=eW91aGF2ZXRvb211Y2h0aW1lb255b3VyaGFuZHMh
ionburst_uri=https://api.example.ionburst.io/

Usage

Initialise

from Ionburst import Ionburst
ionburst = Ionburst()

or

from Ionburst import Ionburst
ionburst = Ionburst("https://api.example.ionburst.io/")

Upload Data

result = ionburst.put({
  id: '...',
  data: '...',
  classstr: '...' // Not Required
})

Download Data

result = ionburst.get(id)

Delete Data

result = ionburst.delete(id)

Upload Data Deferred

token = ionburst.startDeferredAction({
  action: 'PUT',
  id: '...',
  data: '...',
  classstr: '...'  // Not Required
})

Download Data Deferred

token = ionburst.startDeferredAction({
  action: 'GET',
  id: '...'
})

Check Data Deferred

result = ionburst.checkDeferred(token)

Fetch Data Deferred

result = ionburst.fetch(token)

Get Classifcations

data = ionburst.getClassifications()

Getting Help

Please use the following community resources to get help. We use Gitlab issues to track bugs and feature requests.

  • Join the Ionburst Python chat on gitter
  • Get in touch with Ionburst Support
  • If it turns out that you may have found a bug, please open an issue

Opening Issues

If you find a bug, or have an issue with the Ionburst SDK for Python we would like to hear about it. Check the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of Ionburst SDK Python and the OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

The Gitlab issues are intended for bug reports and feature requests. For help and questions with using the Ionburst SDK for Python please make use of the resources listed in the Getting Help section. There are limited resources available for handling issues and by keeping the list of open issues clean we can respond in a timely manner.

SDK Change Log

The change log for the SDK can be found in the Gitlab Releases page

Contributors

A massive thanks to Costin Botez for developing this SDK.

Tests

Dependencies

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

ionburst-sdk-python-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionburst_sdk_python-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ionburst-sdk-python-1.0.0.tar.gz.

File metadata

  • Download URL: ionburst-sdk-python-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for ionburst-sdk-python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b5d143dddd12e978212a6e61a560a31af4abc6eb686b8eaf507dd273c4d48bfb
MD5 c61e658ddfcd6945e3e196c6ce479804
BLAKE2b-256 ecd283197f0fb7bce54ec4831ca174fc5db4a5a57303750f30e11c4b3fccbce0

See more details on using hashes here.

File details

Details for the file ionburst_sdk_python-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ionburst_sdk_python-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for ionburst_sdk_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba6e5721fe344dde2b9c4c4afc21355b5f01f66b64749a03f1876441be82c0d
MD5 6c9276b1b228cc97032195738bb31ff3
BLAKE2b-256 48f8062669c977e7674dd2c2f451f31f2c5e25550f9b625a3dfb455309a78809

See more details on using hashes here.

Supported by

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