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.3.tar.gz (11.5 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.3-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openrpcclientgenerator-0.51.3.tar.gz
  • Upload date:
  • Size: 11.5 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.3.tar.gz
Algorithm Hash digest
SHA256 7cc7d7c25f5d6ae6e7d132289d6309826d028c81588e61c1c8820424611c9def
MD5 f602b29200ee9c9e414599dc2a6a3e23
BLAKE2b-256 a7685838aa75f3c3e2e38f4ba21554f37588046e1970df7501833d555072b46a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openrpcclientgenerator-0.51.3-py3-none-any.whl
  • Upload date:
  • Size: 21.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8aa20917d238fe24a415995cda432239a5adfca60202e8d4db5d7dd36d661115
MD5 8f5fd82cc9a100d7faba3d667a4ffc20
BLAKE2b-256 4fd296c6b0ef96c171648886ec31ea967318f971facca03c037eba1f491229df

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