Registry / devops / heroku3

heroku3

JSON →
library5.2.1pypypi✓ verified 80d ago

Python wrapper for the Heroku API v3. Current version 5.2.1. Low release cadence; last stable release 5.2.0. Supports Python 3 only since v3.4.0.

pip install heroku3
INSTALL
IMPORT
SIG · HEROKU3
H
heroku3
devopspythonv5.2.1
Install
2.2s avg
Import
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 23MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

api
from heroku3 import api
from heroku3 import Heroku
from_key
from heroku3 import from_key
from heroku3 import Heroku
core
from heroku3 import core
from heroku3 import Heroku

Initialize Heroku client and list apps.

import os from heroku3 import Heroku heroku = Heroku(token=os.environ.get('HEROKU_API_KEY', '')) account = heroku.account() print(f"Account email: {account.email}") apps = heroku.apps() print(f"Number of apps: {len(apps)}")
Debug
Known issues
breakingIn v5.2.0, the release endpoint changed to return a single instance instead of a list. Code expecting list will break.
fix
Update code to handle single release object. E.g., `release = app.releases()[-1]` is now `release = app.releases()[-1]` still works but note behavior change.
affects: >=5.2.0
deprecatedPython 2.6 support dropped in v3.4.0. Python 2.7 support likely dropped in later versions.
fix
Upgrade to Python 3.6+ and heroku3 >=3.4.0.
affects: <3.4.0
gotchaHeroku API keys are required. Only OAuth tokens are supported by heroku3; session cookies or other auth methods not available.
fix
Generate an API key from Heroku dashboard: Account settings > API Key.
affects: all
Upgrade
Version history
5.2.1latest on PyPI · released Apr 17, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
heroku3 — pip install heroku3 · libregistry