Skip to main content

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

python-nrpc-0.0.3.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

python_nrpc-0.0.3-py3-none-any.whl (10.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page