skillfed

agithub

A lightweight, transparent syntax for REST clients

agithub v2.2.2 73.6K downloads/30d#14,958 on PyPI428
Permissive license MIT DORMANT released

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 agithub

uv

uv add agithub

poetry

poetry add agithub

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 2.6Programming Language :: Python :: 3Topic :: Utilities

Tags

REST API client PythonGitHub API wrapperlightweight HTTP clienttransparent REST syntaxmulti-API client libraryagnostic REST APIrapid API prototyping
rest-clientapi-wrappergithub-integration

More Utilities packages