A python code generator and lib for Nats RPC
Project description
Python NRPC
A python code generator and lib for Nats RPC.
See https://github.com/nats-rpc/nrpc for more information on NRPC itself.
This package provides a protoc plugin to generate python code from .proto files, respecting the nrpc specifications.
Developer notes
Running tests
Get a 'nats-server' binary in the PATH, you can get the latest release from https://github.com/nats-io/nats-server/releases.
Install the test requirements:
pip install -r requirements-test.txt
Run the tests:
pytest
If the template changed, you may need to run "gen.sh" in the examples/alloptions
directory.
Generating protobuf files
For regenerating the nrpc protobuf files, make sure the protobuf is installed.
Copy 'nrpc.proto' from the https://github.com/nats-rpc/nrpc project into the nrpc/ directory.
Then, run the following command:
python setup.py protoc
Project details
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 python-nrpc-0.0.6.tar.gz
.
File metadata
- Download URL: python-nrpc-0.0.6.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f71c474def1e65ad2ec0772c5f5d66f39ea37d35695e4a71905677b17f710ad |
|
MD5 | 76ce0727c7e0d26b727f47416ec75185 |
|
BLAKE2b-256 | 0eef37da683767f302a64c85fbe6a444f4efb364a800342b299174db0920802b |
File details
Details for the file python_nrpc-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: python_nrpc-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d66dc09d3e222e80939fb7356150a0ed550ce80b9c0d9cdb25d0578ae1eb5fc |
|
MD5 | 10377b9bceffe63a40fdb918b3825e5a |
|
BLAKE2b-256 | d052d91814592cfabeac13cb69ea988b221db30a67c98179825753e6b490908b |