Welcome to WavesPy’s documentation!¶
wavespy
is Python API client for Waves node. It provides sync HTTP client based
on requests module and async based on
aiohttp.
Also it has some useful features e.g. Waves address generation and validation, transaction data generation.
wavespy?¶
Originally pyacryl2
Installation¶
pip install wavespy
From source:
python setup.py install
Tests:
From source:
python setup.py test
Making requests to node API¶
Using sync client:
from wavespy.client import WavesClient
client = WavesClient()
print(client.node_version())
Or using async client:
import asyncio
from wavespy.async_client import WavesAsyncClient
client = WavesAsyncClient()
# Python 3.6
loop = asyncio.get_event_loop()
print(loop.run_until_complete(client.node_version()))
# Python 3.7
print(asyncio.run(client.node_version()))