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:

sh protoc.sh

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.8.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_nrpc-0.0.8-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file python_nrpc-0.0.8.tar.gz.

File metadata

  • Download URL: python_nrpc-0.0.8.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for python_nrpc-0.0.8.tar.gz
Algorithm Hash digest
SHA256 89b0cfc1aab05f67eb5f0894d5386cd0b1ac5ddced3b5a250caf6cb0aae07caf
MD5 80a489faa9bf082bc35c2e6f58996550
BLAKE2b-256 7a653433e407a8f31ecd6ea3eb857b668c7d61ab79a1fefd4ccac099e0d5b3bd

See more details on using hashes here.

File details

Details for the file python_nrpc-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: python_nrpc-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for python_nrpc-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7f488bc0102da546bd03b1843c528630b4b74986e6035a435e5d9a370049a3eb
MD5 87a9a4e08ca3e9e2563a42a0c6a21100
BLAKE2b-256 d570a285221c5b5f93d93e62fb5ee01aba554dce1b51ba672a9a5789994095e5

See more details on using hashes here.

Supported by

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