{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"}],"enrichment":{"capability":"Hammock wraps the requests library to let you build REST API calls using object notation instead of string formatting, converting URL paths into chained method calls.","skillfed_tags":["rest-client","abandoned"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"hammock","links":{"html":"https://skillfed.io/packages/hammock","md":"https://skillfed.io/packages/hammock.md","pypi":"https://pypi.org/project/hammock/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2013-04-21","license_spdx":null,"license_treatment":"unclear","name":"hammock","python_support":"unspecified","summary":"rest like a boss"},"popularity":{"monthly_downloads":169349,"position":10420,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.4"}
