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

Uploaded Source

Built Distribution

python_nrpc-0.0.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file python-nrpc-0.0.4.tar.gz.

File metadata

  • Download URL: python-nrpc-0.0.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for python-nrpc-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f1a5048885ddbfe0743f9ff4830c94fa587c2eb5632dd2eaafbaf71f84b8837d
MD5 2f3a7027d6ea096d68e356870a8d5148
BLAKE2b-256 1bf152c22b916f9e68017644a169a2b090075bb09ddd317fbadb09bf4d94737a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_nrpc-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for python_nrpc-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0524e5f1e964e982a5ae2512487e9c7f167abd53e1219c2c0bd9ac4ae1ffafcb
MD5 db35f02e3a3cc3756e73806e23ee856f
BLAKE2b-256 83d164a4950aa45ba0e415434f841a1d4d014fd8a18f8c8715e703b284b73933

See more details on using hashes here.

Provenance

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