Skip to main content

Generate protobuf files in python and C++ to be used for remote access to RL environment

Project description

Goal:

Generate protobuf files in python and C++ to be used for remote access to RL environment.

Supported version:

  • protoc 3.12.2
  • grpc 1.30.0

To build python API

python -m grpc_tools.protoc -I=. --python_out=. --grpc_python_out=. ./env.proto

To build C++ API

/bigdisk/lax/rl/grpc/.local/bin/protoc -I=. --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=$(which grpc_cpp_plugin) ./env.proto

mv ./env.pb.h grpc_client/include/

mv ./env.pb.cc grpc_client/src/

mv ./env.grpc.pb.h grpc_client/include/

mv ./env.grpc.pb.cc grpc_client/

How to use?

Run server.py to start a gym server on nvidia05 and then you can either use client.py or client.cpp to make calls to the server.

Example: start a server on nvidia05: /bigdisk/lax/renaza/projects/anaconda3/bin/python server.py--host 10.122.32.31 --port 10020

Note: this particular python package satisfies the required packages, that is why we suggest testers to use it until we create a grpc package.

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

remote-env-0.0.2.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

remote_env-0.0.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file remote-env-0.0.2.tar.gz.

File metadata

  • Download URL: remote-env-0.0.2.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for remote-env-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c5c0f296633397e38827a52bb0179c951b01b985e9c7a74dbbb3fab542075956
MD5 9e2b837f7771bc8af7912ae60ddc2776
BLAKE2b-256 a3f06ff2021e9635a2edc765e2d5cbe11ddddadbed7cbc44cd2ca32efa712801

See more details on using hashes here.

File details

Details for the file remote_env-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: remote_env-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

File hashes

Hashes for remote_env-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3db27e251bcd0c4dbba07cbfcae5ba6ca202c14e4c82b2c3989a4b79dec92b6f
MD5 9e26ab72f6f4c65c1d5c0c0a9651d6fe
BLAKE2b-256 f9b24ae130c8dc85b67c5887ce3c82c1fc1c3202013984d32c94d2bb1c330d8d

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