Skip to main content

Aeneas fullnode API Python client

Project description

coverage PyPI version

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

Project details


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)

Uploaded Source

Built Distribution

pyaeneas-0.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page