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.3.0.tar.gz
(33.9 kB
view details)
Built Distribution
ain_py-1.3.0-py3-none-any.whl
(28.9 kB
view details)
File details
Details for the file ain_py-1.3.0.tar.gz
.
File metadata
- Download URL: ain_py-1.3.0.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63185bcaf6c52f05f8f1d5536c7f2e34ebc7203ca1fc21f754e10c7a2f45ac31 |
|
MD5 | f90ac7c7371deb1a13492c040ca289c5 |
|
BLAKE2b-256 | 5d6907f76f7f685278350cb835b06d986bfd96057f29f984dcba60dfc4e67aff |
File details
Details for the file ain_py-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: ain_py-1.3.0-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb86f053c2e38319ee141aee538dc781015070ce65d3201c16c2af75b90df964 |
|
MD5 | f7d5884ee93bd5d2376c117f031c317d |
|
BLAKE2b-256 | 5f2c3a3d4773eda5227cb70cc62fc839941b6a04a2dc07999874321bcb7eeb75 |