Skip to main content

nanoto_py : Python gateway to rpc.nano.to

The goal is to create the easiest way to prototype nano apps.

Get your free API_KEY from https://rpc.nano.to and hack around!

How to install :

pip install nanotopy

or from source :

git clone https://github.com/gr0vity-dev/nanotopy.git
cd nanotopy
pip install .

Example code :

import asyncio
from nanotopy.client import NanoTo

async def run():

    # This can only be done once ! Write down the key!
    AUTH_KEY = await NanoTo.get_auth_key("your@email.address")
    print(AUTH_KEY)
    nano_to = NanoTo(AUTH_KEY["key"])

    # Create a new nano account
    # Seed generation is done locally! No secrets are ever shared
    seed = NanoTo.generate_seed()
    seed_index = 0
    # Same seed and seed_index will ALWAYS result in the same private_key
    private_key = NanoTo.get_private_key_from_seed(seed, seed_index)
    account = NanoTo.get_account_from_key(private_key)
    print(account)

    # Get account info
    account_info = await nano_to.account_info(account)
    print(account_info)

    # Receive all blocks
    received_hashes = await nano_to.receive_blocks_many(private_key)
    print(received_hashes)


if __name__ == "__main__":
    asyncio.run(run())

Metadata

Release files for nanotopy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nanotopy 0.1.0
File Size Uploaded Provenance Actions
nanotopy-0.1.0.tar.gz 4.0 kB Without provenance Details for nanotopy-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nanotopy 0.1.0
File Interpreter ABI Platform Actions
nanotopy-0.1.0-py3-none-any.whl Python 3 none any Details for nanotopy-0.1.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / nanotopy-0.1.0.tar.gz

Download URL nanotopy-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4881611c4827e94ad46e75d63178c5b9d7b1fa5ed1be489a1cd886b9976fffd
BLAKE2b-256 checksum
How to use checksums
a6bace3dc11603a60cb6ae0ba5689a4fee871f8aa4adbd76155762e1481d1a7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / nanotopy-0.1.0-py3-none-any.whl

Download URL nanotopy-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
642fd70e15ea689be7a1526c2eec97d0dc60be477ee4e4be5d71399e9d1badd7
BLAKE2b-256 checksum
How to use checksums
cbc661161de216ae0d0c47d3f89133f72b30b550278caa316d799929af5d408d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for nanotopy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page