An RPC server that extends the default neo-python RPC server with plugable commands.
Installation
Install the package via pip
pip install neopython-extended-rpc-server
Next, open your neo-python’s protocol.<network>.json, find the RPCServer key and set it as follows
"RPCServer": "neopython_ext_rpc_server.ExtRpcServer.ExtendedJsonRpcApi"
Note that the default installation has not additional commands over neo-python’s build-in RPC Server.
Extending with new commands
You can extend the RPC server with your own commands by creating a plugin. This has 2 requirements:
Your plugin must extend the ExtendedRpcCommand class and implement the required methods.
Your plugin must be installed using setuptools and register an entrypoint under neopython.extrpc.plugins. See the entry_points key in /extrpc-plugin-example/setup.py for an example.
If your plugin does not adhere to the above 2 requirements it will not be picked up by the loader. The easiest approach is probably to copy the example plugin folder and adjust it to your needs.
Once your done you can either share your plugin via PyPi (Instructions) to make it installable via pip or you can install it directly using python setup.py install.
Note: you have to restart the RPC server for new commands to be picked up.
Metadata
Release files for neopython-extended-rpc-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neopython-extended-rpc-server-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for neopython-extended-rpc-server-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neopython_extended_rpc_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for neopython_extended_rpc_server-0.1.0-py3-none-any.whl |
Total release size: 10.3 kB
Release files / neopython-extended-rpc-server-0.1.0.tar.gz
| Download URL | neopython-extended-rpc-server-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b1215060f556abd79528a267c3c6afcb68bf72a83df71ce170269ab82f2fed1
|
|
BLAKE2b-256 checksum How to use checksums |
0da20e35a80608ad3826276ff627c9d39aae8a69616981e6abdb1d65ca37eb10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
|
Release files / neopython_extended_rpc_server-0.1.0-py3-none-any.whl
| Download URL | neopython_extended_rpc_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54c6bdf4969ea345d2e72d9854212f3e92ed1f84b4bd1c37c7b7c26cd5061e44
|
|
BLAKE2b-256 checksum How to use checksums |
4aa85e2c23ada7dd22a0b32d7fc0832c357b893c4f242d0cf563b1808b92dfb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
|
Security for neopython-extended-rpc-server 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.