SDK for the Aidios API
Reason this release was yanked:
error
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
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
Built Distribution
File details
Details for the file aidios_sdk-0.1.tar.gz
.
File metadata
- Download URL: aidios_sdk-0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d88681024c6063d6615e13aadb7041468895f22cf243486a252ec7560ddcf0d |
|
MD5 | 1802820ca972fc3a58faa34089149522 |
|
BLAKE2b-256 | 9fcc3f11e20db0e45eddb6f1f429d15caad99255ce227e4f1b84fbadae850707 |
File details
Details for the file aidios_sdk-0.1-py3-none-any.whl
.
File metadata
- Download URL: aidios_sdk-0.1-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.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0419c4db77166dd316fa55666baa804de85d4de536a16499e00c8a52acad711 |
|
MD5 | 2398fdfed93fd945d241376ba9246b54 |
|
BLAKE2b-256 | 1d9abf20aa1a01b6095f733a9c0c5f766c9aea74e133e7b7b1da16d8faeba17e |