Skip to main content

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

  1. Clone AIN Blockchain and install
git clone git@github.com:ainblockchain/ain-blockchain.git
yarn install
  1. Start blockchain locally
bash start_local_blockchain.sh
  1. 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)

Source distribution for ain-py 1.3.0
File Size Uploaded
ain_py-1.3.0.tar.gz 33.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ain-py 1.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page