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.2.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.2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rest_rpc-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 597e00586ce734e61b564900eaa0e9135a173e41215b3ffb89ad30ba8f6cc966
MD5 70d8bf44039ae4fa9ebf3d2a14157ae1
BLAKE2b-256 6fefe7daef2634bd6a329a5ffe358f1fa7e7086110d227c141368dad510b4c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rest_rpc-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73e65d6303b0360385125f31cf8a15d703f6ddb6be55dd7b8bf8276a85116381
MD5 4156eb332f977ad538e8336eadaf5b68
BLAKE2b-256 941a05695cde2eed1a32596859208740b011d221cffc839881f865da1acb82b1

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