Skip to main content

SDK for the Aidios API

Project description

######Aidios SDK for Python#######

This SDK for the AIDIOS API, provides an easy to use pyton interface. It allows you to retrieve and store data, get digest information, and confirm data transactions.

#Installation Using Pip: pip install aidios_sdk

#Dependencies requests json (note json, and requests will be downloaded when you install aidios_sdk. 'requests' is only used in the example_usage.py

#Usage #Importing the SDK First, import the SDK in your Python script:

from aidios_sdk import AidiosAPI

##Initializing the API Client You can initialize the API client as follows:

api = AidiosAPI()

###Retrieve Data To retrieve data, use the retrieve method and pass in the data ID:

data_id = "some_data_id" response = api.retrieve(data_id) print("Retrieve Response:", response)

####Store Data Use the store method and pass a file:

with open("path/to/file", "rb") as file: file_content = file.read()

data = {"file_content": file_content} response = api.store(data) print("Store Response:", response)

#####Get Digest To get digest information, use the digest method:

data_id = "some_data_id" response = api.digest(data_id) print("Digest Response:", response)

######Get Confirmations Check this number of transactions and associated stats for a given (root)txid:

transaction_id = "some_transaction_id" response = api.confirmations(transaction_id) print("Confirmations Response:", response)

#######Example Script An example script demonstrating these functionalities is included in the examples/ directory.

To run the example:

python examples/example_usage.py

The test script will prompt you to perform each of the functions( store, retrieve, digest and confirmations.

Have fun with aidios!

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

aidios_sdk-0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

aidios_sdk-0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file aidios_sdk-0.2.tar.gz.

File metadata

  • Download URL: aidios_sdk-0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for aidios_sdk-0.2.tar.gz
Algorithm Hash digest
SHA256 52d8de293ccc1f3fc11c919aa92321ca503a42cf34f6441a1cb609bdba63dede
MD5 ee7403edce2727ba3b18f620cfb492ac
BLAKE2b-256 46b327aa9a33d6116caa0c55264dccaf7a1ec5c91e920334934860d09c7fb16e

See more details on using hashes here.

File details

Details for the file aidios_sdk-0.2-py3-none-any.whl.

File metadata

  • Download URL: aidios_sdk-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for aidios_sdk-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56855dfa93af74685339c3b47abe882148d4807f83ff4e694aaff359ef21ba1c
MD5 d3fd8d3092f674a1376e2fe56a20eed4
BLAKE2b-256 bc9852642315868304497b440a890fc3602aa6aaaf8a7997c4529090a64d2775

See more details on using hashes here.

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