Skip to content

nats-rpc/python-nrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A python NRPC implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •