fromuplinkimportConsumer,get,headers,Path,QueryclassGitHub(Consumer):"""A Python Client for the GitHub API."""@get("users/{user}/repos")defget_repos(self,user:Path,sort_by:Query("sort")):"""Retrieves the user's public repositories."""
What's the difference between this Python project and similar ones?
Quickly Define Structured API Clients
Bring Your Own HTTP Library
Easy and Transparent Deserialization/Serialization
Extendable
Authentication
--
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/1124
**Author:** [@prkumar](https://github.com/prkumar)
**Created:** 9/14/2018
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`22d076c`](https://github.com/vinta/awesome-python/commit/22d076cd0a5b605ccfcac3b34b5dfea1d781ba0d) Add `uplink` to HTTP section
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## What is this Python project?
[Uplink](https://github.com/prkumar/uplink) turns your HTTP API into a Python class.
```python
from uplink import Consumer, get, headers, Path, Query
class GitHub(Consumer):
"""A Python Client for the GitHub API."""
@get("users/{user}/repos")
def get_repos(self, user: Path, sort_by: Query("sort")):
"""Retrieves the user's public repositories."""
```
Uplink is a **Declarative** HTTP Client for Python:
- Builds Reusable Objects for Consuming Web APIs.
- Works with **Requests**, **asyncio**, and **Twisted**.
- Inspired by [Retrofit](http://square.github.io/retrofit/)
## What's the difference between this Python project and similar ones?
- Quickly Define Structured API Clients
- Bring Your Own HTTP Library
- Easy and Transparent Deserialization/Serialization
- Extendable
- Authentication
--
Anyone who agrees with this pull request could vote for it by adding a :+1: to it, and usually, the maintainer will merge it when votes reach **20**.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1124
Author: @prkumar
Created: 9/14/2018
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
22d076cAdduplinkto HTTP section📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
Uplink turns your HTTP API into a Python class.
Uplink is a Declarative HTTP Client for Python:
What's the difference between this Python project and similar ones?
--
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.