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.0.tar.gz
(33.6 kB
view hashes)
Built Distribution
ain_py-1.2.0-py3-none-any.whl
(28.8 kB
view hashes)