Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.86 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.86 KB

Nerva Python Library

Ruff Build License

Table of Contents

About

Python bindings for the JSON RPC interface of the Nerva cryptocurrency.

Installation

Requirements

  • Python 3.8+
  • uv (for development only)

Setup

To install current latest release you can use following command:

pip install nerva-py

To install the latest development version you can use following command:

uv add git+https://github.com/Sn1F3rt/nerva-py.git --branch main

Documentation

Developers please refer to the docstrings in the code for more information. Full API reference will be available soon.

Here is a simple example to get you started:

import asyncio

from nerva.daemon import Daemon


async def main():
    daemon = Daemon(
        host="localhost",
        port=17566,
        ssl=False,
        username="rpcuser", # omit if daemon was not started with the rpc-login flag
        password="rpcpassword" # omit if daemon was not started with the rpc-login flag
    )

    print(await daemon.get_info())


asyncio.run(main())

Support

License

MIT License

Copyright © 2024 Sayan "Sn1F3rt" Bhattacharyya