Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 445 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 445 Bytes

ain-py

A python version of ain-js.

Installation

pip install ain-py

Run all test

tox

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())