# prkumar/uplink

A Declarative HTTP Client for Python

Repository: https://github.com/prkumar/uplink
Canonical: https://ross.abutalabs.com/products/uplink
Homepage: https://uplink.prkumar.dev
Language: Python
License: MIT
License Family: permissive
Topics: python, http, http-client, rest-api, retrofit, requests, api-client, aiohttp
Last push: 2025-06-14T20:23:45+00:00

## Health v2 (maintenance only)
Score: 34/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 26, release rhythm 8, longevity 100
- inputs: {"age_days": 3264, "days_push": 445, "days_rel": 445, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1139, forks 66 (observed 2026-08-28T04:03:44.201257+00:00)

## What it is
Uplink is a declarative HTTP client library for Python, inspired by Retrofit, that turns REST APIs into Python classes using decorators and type hints. It supports pluggable HTTP backends (requests, aiohttp, Twisted), async I/O, and converters for pydantic and marshmallow models.

## Use cases
- build a python client for a rest api
- define api clients declaratively with decorators
- make async http requests with aiohttp
- deserialize json responses into pydantic models
- wrap a third-party rest api in a reusable class
- swap http backends without rewriting client code

## When to choose
- you want a structured, class-based API client instead of ad-hoc requests calls
- you like Retrofit's declarative style in Python
- you need async support via aiohttp or Twisted
- you want built-in serialization with pydantic or marshmallow

## When to avoid
- you need a simple one-off HTTP request
- you prefer writing requests calls directly
- you need a client for a non-REST protocol like GraphQL or gRPC

## Facets
- artifact type: library
- maturity: active
- function: http-client, serialization, middleware, auth
- domain: web-development, apis, developer-tools
- platform: python, cross-platform
- tags: declarative, retrofit-inspired, rest-client, aiohttp, twisted, pydantic, marshmallow, async

## Member repositories
- prkumar/uplink (main) score 34

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:44.201257+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:36:06.224162+00:00, confidence not recorded.
  - readme: https://github.com/prkumar/uplink (fetched 2026-08-28T04:03:44.201257+00:00, sha 186bffedc769)
  - homepage: https://uplink.prkumar.dev (fetched 2026-08-29T12:41:11.729012+00:00, sha f72ac1707250)
  - site_page: https://uplink.prkumar.dev/user/install (fetched 2026-08-29T12:41:11.734001+00:00, sha 23bca0ad8c99)
  - site_page: https://uplink.prkumar.dev/user/quickstart (fetched 2026-08-29T12:41:11.735689+00:00, sha ce6ea4a8af93)
  - registry_pypi: https://pypi.org/pypi/uplink/json (fetched 2026-08-29T12:41:11.737588+00:00, sha 7b3ce2a77b8f)
  - site_page: https://uplink.prkumar.dev/changelog (fetched 2026-08-29T12:41:11.731840+00:00, sha 0e52b24f9b40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
