agithub
A lightweight, transparent syntax for REST clients
What it is and what it does
Agithub is a REST API client that translates Python attribute and method chains directly into HTTP requests, eliminating boilerplate and making API calls read like the underlying protocol. Instead of building URL strings and managing headers manually, you write `client.repos.owner.name.issues.get()` and agithub handles the HTTP details—serializing parameters, encoding URLs, and returning status and response body as a tuple.
The package ships with implementations for GitHub, Facebook, DigitalOcean, OpenWeatherMap, and SalesForce, but its core design is protocol-agnostic: you can add support for any REST API with minimal code. It handles GET, POST, PUT, and PATCH requests, accepts custom headers and query parameters as function arguments, and exposes response headers via `getheaders()`. Errors are passed through transparently—networking exceptions bubble up normally, and API errors appear in the response status and body, letting you handle them directly.
Use it for:
- Rapid prototyping of GitHub integrations without learning a full SDK or managing authentication boilerplate.
- Building scripts that interact with multiple REST APIs (GitHub, Facebook, DigitalOcean) using a uniform syntax.
- Querying public REST APIs (like OpenWeatherMap) from Python scripts without installing service-specific clients.
- Adding REST API support to a custom service by extending agithub with 30 lines of code.
- Exploring an unfamiliar REST API interactively in a Python REPL without pre-building request objects.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A lightweight REST API client with transparent Python syntax that maps directly to HTTP requests, supporting GitHub, Facebook, DigitalOcean, OpenWeatherMap, SalesForce, and other REST APIs with minimal boilerplate.
Yes, if you need a lightweight, syntax-transparent REST client for prototyping or simple integrations with GitHub or other public APIs. No, if you require active maintenance, modern Python-only support, or expect bug fixes—the package is dormant (last release 2019-11-12) and shows no signs of active development. It is stable and permissively licensed, but treat it as a mature, frozen tool rather than an actively supported library.
Install
agithub on PyPI
pip
pip install agithubuv
uv add agithubpoetry
poetry add agithubInstalling agithub
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2019-11-12 and last commit 2024-06-24—so expect no active bug fixes or feature development, though the codebase is stable and archived status is false.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute agithub freely as long as you include the license notice.
Quickstart
from agithub.GitHub import GitHub
g = GitHub()
status, data = g.users.octocat.get()
print(data['name'], status)
Verify before relying
- Whether Python 2.6 support (listed in classifiers) is actually maintained or tested.
- Current compatibility with modern Python versions beyond what classifiers indicate.
- Whether the package works with current versions of the APIs it claims to support.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 2,467 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,643/month — #14,958 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agithub-2.2.2-py2.py3-none-any.whl
Keywords: api, REST, GitHub, Facebook, SalesForce
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
apiclientA lightweight framework for building HTTP API…
permissive · top 15,000 on PyPI
gidgethubGidgethub is an asynchronous GitHub API library…
permissive · top 15,000 on PyPI
uplinkUplink turns HTTP APIs into declarative Python…
permissive · top 15,000 on PyPI
simple-salesforceA REST API client for Salesforce that provides…
permissive · top 1,000 on PyPI
httpieHTTPie is a command-line HTTP client that makes…
permissive · top 5,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
sgqlcsgqlc is a Python client library for querying…
permissive · top 5,000 on PyPI
orb-billingA Python client library for the Orb billing…
permissive · top 5,000 on PyPI
graphqlclientA lightweight GraphQL client that sends queries…
permissive · top 15,000 on PyPI
ghapighapi provides a complete, always-current…
permissive · top 1,000 on PyPI