Skip to main content

A Python library that makes type-checked REST APIs easy

Project description

REST-RPC

REST-RPC is a Python library that makes writing type-checked REST APIs easy (by allowing you to define your API once and use it on both the server and the client).

It automatically creates convenient front-end bindings to your API for you, so from the front-end developer's perspective it's indistinguishable from an RPC library, hence the name.

REST-RPC's type-checking is based on Pydantic. For the back-end, it used FastAPI. For the front-end, it supports requests, urllib3, httpx, and aiohttp (or provide your own transport layer). If you want to use REST-RPC in the webbrowser, you can: It supports pyodide's pyfetch and pyscript's fetch! This means that the only "hard" dependency is pydantic. Of course, you'll need FastAPI in the back-end and one of the mentioned HTTP libraries for the front-end.

REST-RPC is for you, if you:

  • …like FastAPI and Pydantic.
  • …just want to write simple type-checked REST APIs without frills.
  • …don't want to repeat yourself when writing the front-end code.

Visit the GitHub page for more information.

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

rest_rpc-0.1.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

rest_rpc-0.1.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file rest_rpc-0.1.3.tar.gz.

File metadata

  • Download URL: rest_rpc-0.1.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for rest_rpc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7e01cff4e768fb0ad4d9b6ef2485f62afd14bca7513eb8359b7a37f53937f2da
MD5 1622de0ad5600c4a0d6cd9f83960a6d5
BLAKE2b-256 0fef67bd7c6ca0612c9a0837535d18c14bd6ddaba665da96fb066a1ea12ca9a3

See more details on using hashes here.

File details

Details for the file rest_rpc-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: rest_rpc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for rest_rpc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b53a4ea1d4cf23f2302d8e7bc1792946565a27f126ab9e06a732d534e4e27d91
MD5 678c34d7d0b35ef2617ad2669dbb0c6f
BLAKE2b-256 0a7e78eb8bf8cc7a0e3dfbf134467b8fdb06a71ebbaa1b8c785a989b34fa300b

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