Aeneas fullnode API Python client
Project description
This package is a Python client for Aeneas platform fullnode WebSockets API.
Installation
Install from PyPI by pip install pyaeneas
Quickstart
from pyaeneas import Aeneas
api = Aeneas()
# invoke signup process
response = api.execute('Signup')
print(response['phrase'])
# confirm passphrase
response = api.execute('PassPhraseSaved', {'passPhrase': response['phrase']})
print(response)
Aeneas client uses this URI by default: ws://localhost:9085/aeneas. If you want to connect to another fullnode, pass URI as a client parameter:
from pyaeneas import Aeneas
api = Aeneas('ws://example.com/aeneas')
Tests
For running tests install and run Aeneas fullnode, then run a command from the parent pyaeneas directory:
python -m unittest pyaeneas.tests.test_client
Requirements
Python >= 3.5.3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyaeneas-0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
pyaeneas-0.2-py3-none-any.whl
(4.5 kB
view hashes)