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.1.tar.gz (10.7 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.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rest_rpc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c99da92d03c9f192c6f6fb105d671af36361d888332652d86e7840e8608b21e2
MD5 a7bba35618a908d947684a48392ab8ae
BLAKE2b-256 ebdb5aeef7955dfebe31ddafeabf06be8f33afc57563f9f0f939dbe4315b4391

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rest_rpc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a51959b4b8a161f4e3fb2ee8241a9618f4cdd434de207c0261863eadbc23b4d
MD5 90337560d2c300a3400dfd4dc6f2b9ba
BLAKE2b-256 a0d88866e11172a2573a79c5e84d2ad2bca253e2c8ca5b8aa7fba87b828a45fa

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