remme

Python integration library for REMChain.


License
Apache-2.0
Install
pip install remme==1.0.0

Documentation

Remme

REST API Remme client written in Python.

Pre-requirements

For using package on local machine, you need Python 3.6.

Installation

Install package from sources:

$ git clone https://github.com/dmytrostriletskyi/remme-client.git
$ cd remme-client
$ python setup.py install

How to use

Copy an example from repository to your local machine:

$ curl https://raw.githubusercontent.com/dmytrostriletskyi/remme-client/master/examples/token.py > token_example.py

Than change host, port and address of the Remme REST API. Find list of nodes here. Also accessing to Remme on localhost also available.

If you want to access localhost Remme from Docker container, use the following settings:

remme = RemmeClient(loop=loop, private_key_hex=None, network_config={
    'node_address': 'docker.for.mac.localhost',
    'node_port': '8080',
    'api_version': '1',
    'ssl_mode': False,
})

If from any place to available nodes:

remme = RemmeClient(loop=loop, private_key_hex=None, network_config={
    'node_address': 'node-genesis-testnet.remme.io',    # or 127.0.0.1 for localhost
    'node_port': '8080',
    'api_version': '1',
    'ssl_mode': False,
})

Docker

Install the package locally:

$ git@github.com:dmytrostriletskyi/remme-client.git
$ cd remme-client
$ docker-compose -f docker-compose.yml up -d
$ docker exec -it remme-client bash
$ python3.6
>>> from remme import RemmeClient
...

Future improvements

For now your are able to pause the stream with asyncio.sleep. It is useful for getting balance, sending tokens and getting balance again to ensure trasaction was sent succsessfully.

But the better way is to check transaction status with batch identifier.