AI Network Client Library for Python3
Project description
ain-py
A python version of ain-js.
Installation
pip install ain-py
Examples
from ain.ain import Ain
import asyncio
ain = Ain('https://mainnet-api.ainetwork.ai/')
async def process():
accounts = await ain.db.ref('/accounts').getValue()
print(accounts)
loop = asyncio.get_event_loop()
loop.run_until_complete(process())
Test How-To
- Clone AIN Blockchain and install
git clone git@github.com:ainblockchain/ain-blockchain.git
yarn install
- Start blockchain locally
bash start_local_blockchain.sh
- Run tests
tox
License
This project is licensed under the MIT License
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
ain_py-1.2.1.tar.gz
(33.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ain_py-1.2.1-py3-none-any.whl
(28.8 kB
view details)
File details
Details for the file ain_py-1.2.1.tar.gz.
File metadata
- Download URL: ain_py-1.2.1.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02abc18b3ec07266f47c71723c6f46a17d1025c90b557802c9c5fabfc00f5a7c
|
|
| MD5 |
72c382aba6d49f2f9371957847a9f976
|
|
| BLAKE2b-256 |
57d37c49cab35d581656b009d292f1d31165d9c38ca683c3b40016cd1de3fc8c
|
File details
Details for the file ain_py-1.2.1-py3-none-any.whl.
File metadata
- Download URL: ain_py-1.2.1-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f00c6462343388461fa679190d735ec73c5e40696f16a31c347edbe9f7ae87
|
|
| MD5 |
dd10ac16a934fd220c20427f0bbfb303
|
|
| BLAKE2b-256 |
15ed6ff2ca5db995eae02681aee8d05bbb36bf03af65f5acb40a38eff6e58ff9
|