slumber
A library that makes consuming a REST API easier and more convenient
What it is and what it does
Slumber is a Python REST API client library that builds on top of requests to provide a more convenient, object-oriented way to interact with RESTful web services. Instead of manually constructing URLs and handling serialization, you define an API endpoint and then navigate resources as nested attributes, with HTTP methods available as method calls.
The package handles URL construction, request serialization, and response parsing automatically. It supports multiple serialization formats (JSON, YAML) and abstracts away much of the boilerplate involved in making REST calls. However, the project has been inactive since 2015 and is no longer maintained, which raises concerns about compatibility with modern Python versions and current best practices.
Use it for:
- Building a client for a third-party REST API without manually constructing URLs and managing serialization
- Rapid prototyping of scripts that consume REST services with minimal boilerplate
- Wrapping a company's internal REST API to provide a cleaner Python interface for other developers
- Migrating legacy code that already uses Slumber, though new projects should consider alternatives
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Slumber wraps the requests library to provide an object-oriented interface for consuming REST APIs, abstracting URL handling, serialization, and request processing.
No, not for new projects. While Slumber offers genuine convenience for REST API consumption, it has been abandoned for over a decade with no Python version support declared and unclear licensing. Modern alternatives like httpx, requests with wrapper patterns, or dedicated client generators are actively maintained and better suited to current Python ecosystems. Consider Slumber only if maintaining existing code that already depends on it.
Install
slumber on PyPI
pip
pip install slumberuv
uv add slumberpoetry
poetry add slumberInstalling slumber
Before you install
Installation is straightforward with no runtime dependencies, but the package has been abandoned since 2015 with no releases in over a decade. The last commit was in 2020, suggesting minimal maintenance.
License in practice
License status is unclear (marked UNKNOWN in metadata), which may create uncertainty about legal use or redistribution. Verify licensing terms before adopting in production or commercial contexts.
Quickstart
pip install slumber
import slumber
api = slumber.API('http://api.example.com/')
users = api.users.get()
Requires requests library as a runtime dependency; pyyaml is optional for YAML serialization support.
Verify before relying
- Whether the package remains compatible with modern Python versions beyond the 2.6–3.4 range mentioned in the changelog
- Current compatibility with recent versions of the requests library it wraps
- Whether the unclear license status has been resolved in the repository
Package facts
| License | UNKNOWN (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 4,110 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,150/month — #13,883 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: slumber-0.7.1-py2-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
hammockHammock wraps the requests library to let you…
unclear · top 15,000 on PyPI
twentyc.rpcA client library for consuming 20c's RESTful…
permissive · top 15,000 on PyPI
pulp-gluepulp-glue is a command-line interface for Pulp…
copyleft · top 15,000 on PyPI
restflyRESTfly is a framework for building libraries…
permissive · top 15,000 on PyPI
SurveyGizmoA Python wrapper for the SurveyGizmo REST API…
permissive · top 15,000 on PyPI
django-tastypiedjango-tastypie provides a REST API framework…
permissive · top 15,000 on PyPI
pulp-cliA command-line interface for interacting with…
copyleft · top 15,000 on PyPI
google_apiProvides a Python wrapper for interacting with…
permissive · top 5,000 on PyPI
djangorestframeworkBuilds web APIs on top of Django with…
permissive · top 1,000 on PyPI
airtable-python-wrapperWraps the Airtable API to let you read, insert,…
permissive · top 15,000 on PyPI