Skip to content

nanoswap/basicnanoclient

Repository files navigation

basicnanoclient

A nano (XNO) cryptocurrency RPC python client and client side wallet

Installation

pip install basicnanoclient

Usage

https://github.com/nanoswap/basicnanoclient/blob/main/notebooks/nano.ipynb

Documentation

https://basicnanoclient.readthedocs.io/

Build docs locally

mkdocs serve

Tests

To only run tests: pytest --cov=basicnanoclient --cov-fail-under=80

To run style checks:

flake8 basicnanoclient --docstring-convention google --ignore=D100
flake8 tests --docstring-convention google --ignore=D100

To run all checks: nox

Before running tests:

  • install a local nano test node
  • run it locally

Running a local Nano Node

# https://github.com/nanocurrency/nano-node/releases/
docker pull nanocurrency/nano-test:${NANO_TAG}
docker run --restart=unless-stopped -d -p 127.0.0.1:17076:17076 -v ${NANO_HOST_DIR}:/root --name ${NANO_NAME} nanocurrency/nano-test:${NANO_TAG}