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

CLI

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.50.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.

openrpcclientgenerator-0.50.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openrpcclientgenerator-0.50.2.tar.gz
Algorithm Hash digest
SHA256 bdad841dfc85dd80c79c03249e59bcb3a5209574107e70110f49dae5c5419d29
MD5 83b6a835cf34e3b00ee55da10473d082
BLAKE2b-256 521e1f42bb6cc552cc0df470025b7715e6b758b1c9fa116d8ab34a513cf24cfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openrpcclientgenerator-0.50.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e09631b37d2e148b39beeba5e23687a571bbcec9d6babb5a18cd60e2c2802124
MD5 e79d2900b96a79b3804b38596210c0c8
BLAKE2b-256 214b60e8551d6dbebceedae759c95de0b896bcc619bc07ca04e8ea47213ba8dd

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