Skip to main content

Generate clients from an Open-RPC document.

Project description

Open-RPC Client Generator

Generate clients from Open-RPC APIs.

Supported Languages

  • Python
  • Rust
  • TypeScript

Install

pip install openrpcclientgenerator

CLI Usage

To see options.

orpc --help

Generate a Client

Call orpc passing as arguments the language to generate client for, the URL of the API, and the out directory to write the generated files to.

If no argument is passed for out it will default to ./out/.

By default it will look for an openrpc.json file in the active directory. If it finds no file it will call the rpc.discover method of the given URL.

orpc rust "http://127.0.0.1:1737" ./out

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

openrpcclientgenerator-0.51.5.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

openrpcclientgenerator-0.51.5-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file openrpcclientgenerator-0.51.5.tar.gz.

File metadata

  • Download URL: openrpcclientgenerator-0.51.5.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openrpcclientgenerator-0.51.5.tar.gz
Algorithm Hash digest
SHA256 b70b8aaa18fc16e87edb930a567b5fe965aa30a6ddb8a372d5aa34b5922b3264
MD5 52d7d6cdf6e32e9ffa7bf762dfd24e40
BLAKE2b-256 4373c7ecf9d6f49d53ad6a0ed6d44e05cb11ffebcb9b0fde100b9efea85a32be

See more details on using hashes here.

File details

Details for the file openrpcclientgenerator-0.51.5-py3-none-any.whl.

File metadata

  • Download URL: openrpcclientgenerator-0.51.5-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openrpcclientgenerator-0.51.5-py3-none-any.whl
Algorithm Hash digest
SHA256 372b67a65a305c3bb638335b291e12268c989c54d8e3edf3eca14283ed237ab2
MD5 3de4b4ad91bbfc2fa28e41672972c157
BLAKE2b-256 80265bdd69a49ff98443f2713e4a191d22f4f7a88c8da2de463bf0264dea52a7

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