Description
Uplink is a declarative HTTP client for Python, inspired by Retrofit. You describe an HTTP API as a Python class. Each method is decorated with an HTTP verb and a path, and parameters such as Path and Query are marked with type hints. Calling the method sends the request, so a GitHub client can list a user's repositories in one line. The README shows a full example that builds a client with a base URL and gets JSON back from the response. For non-blocking requests, Uplink supports aiohttp and Twisted, and examples for async requests, marshmallow and protobuf are linked from the README. The project has a user guide covering installation, quickstart, authentication, clients and serialization, and an API reference. The README says Uplink is in beta. The public API is still evolving, although most changes are expected to be backwards compatible. The source is public on GitHub under the prkumar account, and the README links to its license.…
Highlights
- Describe an HTTP API as a Python class
- Decorators and type hints for each request
- Async requests with aiohttp and Twisted
- User guide and API reference
- Built on a Retrofit-style design
Ratings & Reviews
No ratings yet
Be the first to rate Uplink.
People also visit
Uplink FAQ
What is Uplink?
A declarative HTTP client for Python that turns an HTTP API into a Python class.
How do I make a request?
Call the method you defined. The README's example calls get_repos with a user name and a sort option.
Does it support async?
Yes. The README says it supports non-blocking requests with aiohttp and Twisted, and links an example.
Is it stable?
The README says it is in beta. The public API is still evolving, though most changes are expected to be backwards compatible.
Is it open source?
Yes. The source is public on GitHub, and the README links to its license.
What are the best Uplink alternatives?
Popular alternatives to Uplink include Aiodocker, Up Fetch and RestClient. See all Uplink alternatives

