Skip to main content

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

Release files for python-nrpc 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-nrpc 0.0.8
File Size Uploaded
python_nrpc-0.0.8.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-nrpc 0.0.8
File Interpreter ABI Platform
python_nrpc-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / python_nrpc-0.0.8.tar.gz

Download URL python_nrpc-0.0.8.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
89b0cfc1aab05f67eb5f0894d5386cd0b1ac5ddced3b5a250caf6cb0aae07caf
BLAKE2b-256 checksum
How to use checksums
7a653433e407a8f31ecd6ea3eb857b668c7d61ab79a1fefd4ccac099e0d5b3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / python_nrpc-0.0.8-py3-none-any.whl

Download URL python_nrpc-0.0.8-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f488bc0102da546bd03b1843c528630b4b74986e6035a435e5d9a370049a3eb
BLAKE2b-256 checksum
How to use checksums
d570a285221c5b5f93d93e62fb5ee01aba554dce1b51ba672a9a5789994095e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page