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
Release files for ain-py 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ain_py-1.3.0.tar.gz | 33.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ain_py-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.8 kB
Release files / ain_py-1.3.0.tar.gz
| Download URL | ain_py-1.3.0.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63185bcaf6c52f05f8f1d5536c7f2e34ebc7203ca1fc21f754e10c7a2f45ac31
|
|
BLAKE2b-256 checksum How to use checksums |
5d6907f76f7f685278350cb835b06d986bfd96057f29f984dcba60dfc4e67aff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Release files / ain_py-1.3.0-py3-none-any.whl
| Download URL | ain_py-1.3.0-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb86f053c2e38319ee141aee538dc781015070ce65d3201c16c2af75b90df964
|
|
BLAKE2b-256 checksum How to use checksums |
5f2c3a3d4773eda5227cb70cc62fc839941b6a04a2dc07999874321bcb7eeb75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|