hammock
rest like a boss
Decision gist · record as of 2026-08-14
No. The package is abandoned (last update April 2013, no commits since), install friction is high, and license terms are unclear. While it has no known vulnerabilities and works for simple REST wrapping, modern alternatives are actively maintained and better suited to current Python ecosystems. Use only if you are maintaining legacy code that already depends on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires requests library (not listed as explicit dependency in metadata); Python version compatibility unspecified and untested on modern versions.
- High install friction due to no runtime dependencies but abandoned maintenance status—last release was in 2013, over a decade ago, with no commits since then.
- The package has not been updated to reflect modern Python versions or security practices.
License · maintenance · safety
UNKNOWN (unclear) — License treatment is unclear; the description excerpt contains MIT-like text but the metadata lists license_raw as 'UNKNOWN' with no SPDX identifier. Verify the actual license terms before relying on this package in a production or commercial context.
last release 2013-04-21 (4863 days) · last repo commit 2013-04-21 · 464 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 169,349 downloads/mo, #10,420 on PyPI
Alternatives
Verify before relying
from hammock import Hammock
api = Hammock('https://api.example.com')
response = api.users('alice').posts.GET()
print(response.json)- Whether requests is truly a runtime dependency or only assumed; metadata lists zero runtime dependencies.
- Actual license terms and compatibility with your project's license requirements given unclear license_raw.
- Compatibility with Python versions beyond those in use when the package was last updated in 2013.
- Whether the package still works with current versions of the requests library.
What it is and what it does
Hammock is a thin wrapper around the requests library that lets you construct REST API URLs and make HTTP calls using Python object notation and method chaining instead of manual string formatting. Instead of building URLs like `requests.get("%s/repos/%s/%s/watchers" % (base, user, repo))`, you write `api.repos(user, repo).watchers.GET()`. It supports all HTTP verbs (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) and passes through any keyword arguments to the underlying requests methods, including auth, headers, and params.
The package was last updated in April 2013 and is no longer maintained. While it has no known security vulnerabilities, its age means it has not been tested against modern Python versions or recent versions of requests, and the codebase is frozen. For new projects, more actively maintained REST client libraries or modern async alternatives would be safer choices.
Use it for
- Simplify GitHub API interactions by chaining method calls instead of constructing URLs manually.
- Build Twitter API clients where endpoint paths map naturally to object attributes and method calls.
- Maintain session-based authentication across multiple REST requests to services like JIRA by configuring auth once.
- Prototype REST API clients quickly without writing URL string formatting boilerplate.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last update April 2013, no commits since), install friction is high, and license terms are unclear. While it has no known vulnerabilities and works for simple REST wrapping, modern alternatives are actively maintained and better suited to current Python ecosystems. Use only if you are maintaining legacy code that already depends on it.
Install
hammock on PyPI
Before you install
High install friction due to no runtime dependencies but abandoned maintenance status—last release was in 2013, over a decade ago, with no commits since then. The package has not been updated to reflect modern Python versions or security practices.
Requires requests library (not listed as explicit dependency in metadata); Python version compatibility unspecified and untested on modern versions.
License in practice
License treatment is unclear; the description excerpt contains MIT-like text but the metadata lists license_raw as 'UNKNOWN' with no SPDX identifier. Verify the actual license terms before relying on this package in a production or commercial context.
Quickstart
from hammock import Hammock
api = Hammock('https://api.example.com')
response = api.users('alice').posts.GET()
print(response.json)
Verify before relying
- Whether requests is truly a runtime dependency or only assumed; metadata lists zero runtime dependencies.
- Actual license terms and compatibility with your project's license requirements given unclear license_raw.
- Compatibility with Python versions beyond those in use when the package was last updated in 2013.
- Whether the package still works with current versions of the requests library.
Package facts
| License | UNKNOWN unclear |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,863 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 169,349 / month, #10,420 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: hammock-0.2.4.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “url building for rest apis”
- hammockHammock wraps the requests library to let you build REST API calls…
- pecanPecan is a WSGI web framework that routes HTTP requests to Python…
- drf-nested-routersProvides routers and serializer fields for Django REST Framework to…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also slumber · URLObject · uplink · responses · redfish · lazr.restfulclient · pagerduty · jira · marshmallow-jsonapi