Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

ain-py

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ain-py

AI Network Client Library for Python3

pipPyPI
Version
1.3.0
Maintainers
1

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

Keywords

ain

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts