Skip to main content

humblebundle.py

Unofficial Python client for humblebundle.com. List live bundles, open a bundle to get the games/books/software inside it, and pull this month's Humble Choice games — without a browser.

pip install humblebundle.py

Usage

import humblebundle

# Live bundles per category: games, books, software, bundles/all
bundles = humblebundle.get.bundles(['games'])

for bundle in bundles.values():
    print(bundle.title, bundle.price, bundle.end_date)
    print(bundle.included_item_titles[:3])

# Open a bundle and get the items inside it
items = bundles['survivalfittest_bundle'].stepin()
for item in items.values():
    print(item.title, item.msrp, item.developers, item.publishers)
import humblebundle

# A single bundle by slug or URL
bundle = humblebundle.get.bundle('survival-fittest')
print(bundle.title, bundle.retail_value, len(bundle.tiers))

# This month's Humble Choice games
choices = humblebundle.get.choices()
for game in choices.values():
    print(game.title, game.developers, game.price, game.end_date)

Products are _Product objects: every field is available as an attribute, the untouched source object is kept in .raw, and the object is mapping-like too (product['title'], product.to_dict(), dict(product)).

Common fields

Field Description
name Machine key of the product
title Display title
url / product_url Absolute product URL (bundles)
price Current price, as a float in currency
retail_value Total value of the contents
items_count Number of items in the bundle
included_item_titles Titles of the items in the bundle
platforms / delivery_methods e.g. windows, steam
start_date / end_date ISO-8601 timestamps
developers / publishers Names (bundle items and Choice games)
raw The full source object

Command line

python -m humblebundle bundles games
python -m humblebundle bundle survival-fittest
python -m humblebundle items games survival-fittest
python -m humblebundle choices

Each command prints JSON.

How it works

Humble Bundle moved to a Next.js (App Router) front end. Page data is no longer published in <script type="application/json"> islands; it is streamed inside the React Server Components "flight" payload embedded in the HTML.

humblebundle._rsc extracts that payload, splits it into rows and resolves the "$<row-id>" / "$<row-id>:<path>" references the format uses, so the rest of the package only deals with plain dictionaries and lists.

Notes

  • Only public page data is read; no login or account access is used.
  • The current Humble Choice month is the only one available — Humble removed the per-month pages, so choices() accepts (and ignores) month/year.
  • humblebundle.com asks automated clients to be respectful; keep request volume low and cache results in your own code.
  • This project is not affiliated with Humble Bundle.

License

MIT — see LICENSE.txt.

Metadata

Release files for humblebundle.py 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for humblebundle.py 0.2.0
File Size Uploaded Provenance Actions
humblebundle_py-0.2.0.tar.gz 15.4 kB Without provenance Details for humblebundle_py-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for humblebundle.py 0.2.0
File Interpreter ABI Platform Actions
humblebundle_py-0.2.0-py3-none-any.whl Python 3 none any Details for humblebundle_py-0.2.0-py3-none-any.whl

Total release size: 31.7 kB

Release files / humblebundle_py-0.2.0.tar.gz

Download URL humblebundle_py-0.2.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1fbba3821d113b13b28e04ea854ea998d98e59df304146f1ec66b9b8f278c7f2
BLAKE2b-256 checksum
How to use checksums
b08475760f8c1d5566ad77f53418db3b3caf2111671f0fcf7135a195f258a28f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Release files / humblebundle_py-0.2.0-py3-none-any.whl

Download URL humblebundle_py-0.2.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59cd06e3ec76c9ebb1d9d982617b5d1cae49aa6c20cc0666c229203fde1f6382
BLAKE2b-256 checksum
How to use checksums
e1d933b3c6bcda054bf0a2b3f80644110d927ded450f6dd0e1a2cff67ef552a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.11

Security for humblebundle.py 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page