This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using Robonomics Polkadot Parachain.
Project description
robonomics-interface
This is a simple wrapper over polkascan/py-substrate-interface used to facilitate writing code for applications using Robonomics Polkadot Parachain.
[!WARNING]
Starting from 2.0 the default websocket is changed towss://polkadot.rpc.robonomics.network/
. Usewss://kusama.rpc.robonomics.network/
for Kusama Parachain.
Robonomics project: https://robonomics.network/
Robonomics parachain dapp: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot.rpc.robonomics.network%2F#/explorer
Documentation: https://airalab.github.io/robonomics-interface/
Installation
pip3 install robonomics-interface
Contributing
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Pull Request Process
- Install poetry
- Git clone the repository
- Install requirements with
poetry install
Installing substrate_interface
may require Rust and
Rustup nightly.
- Add functions/edit code/fix issues.
- Make a PR.
- ...
- Profit!
Some important rules
- If needed, install dependencies with
poetry add <lib>
- Use
ReStructuredText
docstrings. - Respect typing annotation.
- Add documentation. Please take in consideration that if a new class was created, add it to
docs/source/modules.rst
. Other functionality is better to be described indocs/source/usage.rst
- Black it:
black -l 120 <modified_file>
- Check how the docs look via
make html
from thedocs
folder and checking thedocs/build/html/index.html
page. - Do not bump version.
- One may test the code by
# in project root
poetry build
pip3 uninstall robonomcis_interface -y #if was installed previously
pip3 install pip3 install dist/robonomics_interface-<version>-py3-none-any.whl
python3 <testing_script>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robonomics_interface-2.0.0.tar.gz
.
File metadata
- Download URL: robonomics_interface-2.0.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252132912f16c9daa990c992e53f018e98d182cc28c220610c01c7eb5289537f |
|
MD5 | cddff5b822a26df00b7ced733ff0a835 |
|
BLAKE2b-256 | b319d8fb8822f03f3f0c92311415bd313dd3022f53dda7883bca270bb8e39750 |
File details
Details for the file robonomics_interface-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: robonomics_interface-2.0.0-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb40615fc9296b2100f7ae0e2738dccc9a2e4127df0b6fff34be90429dd7b1ea |
|
MD5 | aaa5630891088a4d7813bb6f6721f9ee |
|
BLAKE2b-256 | d8e3b87e25ed6a98bb1598ad20689dd4a009f594f6ae309658a221365d23e487 |