skillfed

slumber

A library that makes consuming a REST API easier and more convenient

slumber v0.7.1 86.2K downloads/30d#13,883 on PyPI596
License unclear UNKNOWN Abandoned released

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 slumber

uv

uv add slumber

poetry

poetry add slumber

Installing 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

REST API client libraryobject-oriented API wrapperrequests wrapperREST client abstractionAPI convenience layerHTTP API interfaceREST resource abstraction
rest-clientlegacy-unmaintained

More WWW/HTTP packages