Metadata-Version: 2.1
Name: python-nrpc
Version: 0.0.2
Summary: A python code generator and lib for Nats RPC
Home-page: UNKNOWN
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: protobuf
Requires-Dist: mako
Requires-Dist: asyncio-nats-client

# 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:

```bash
pip install -r requirements-test.txt
```

Run the tests:

```bash
pytest
```



### 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:

```bash
python setup.py protoc
```


