hotcodepush
The typed Python client for the HotCodePush REST API, the over-the-air (OTA) update platform for React Native, Expo, Capacitor and Cordova.
Installation
pip install hotcodepush # or: uv add hotcodepush
It requires Python 3.11 or later.
Usage
from hotcodepush import HotCodePush
hot_code_push = HotCodePush() # reads the API token from HOTCODEPUSH_TOKEN
organization, *_ = hot_code_push.organizations.list()
app = hot_code_push.organizations.apps.create(
framework="capacitor", name="Demo", organization_id=organization.id
)
channel = hot_code_push.apps.channels.create(app_id=app.id, name="staging")
hot_code_push.apps.channels.pause(app_id=app.id, channel_id=channel.id)
The resources mirror the API's paths, /v1/apps/{appId}/channels being apps.channels.
Every method takes keyword arguments and returns pydantic models with snake_case fields; an argument left out stays out of the request, and None sends null.
Uploads take bytes or a file object with its content_length and stream it.
Creating calls send an Idempotency-Key and are retried; pass idempotency_key to reuse one across your own retries.
A failed request raises a HotCodePushError with the API's code, message, details and the HTTP status; code is a str, so a code newer than your client passes through, and ErrorCode lists the codes this version knows.
Documentation
See hotcodepush.com/docs/api/python.
Development
uv sync
uv run pytest
uv run ruff check . && uv run mypy
uv run ruff format . # run before every commit
uv build
uv run scripts/sync_openapi.py fetches the API's OpenAPI document into openapi.json, which the contract test checks the client against.
CLAUDE.md holds the layout and the rules.
License
See LICENSE.
Metadata
Release files for hotcodepush 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hotcodepush-0.5.0.tar.gz | 116.9 kB | With provenance | Details for hotcodepush-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hotcodepush-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for hotcodepush-0.5.0-py3-none-any.whl |
Total release size: 176.8 kB
Release files / hotcodepush-0.5.0.tar.gz
| Download URL | hotcodepush-0.5.0.tar.gz |
|---|---|
| Size | 116.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
991657fa19ce7d2df8a32a42544dc34daa7c8f573892ff2b40687819d9963c2d
|
|
BLAKE2b-256 checksum How to use checksums |
bf63404e01e40b623e36e4f6dec33f19cebc6c78d496ccee1523e9a2ca2c1010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logRelease files / hotcodepush-0.5.0-py3-none-any.whl
| Download URL | hotcodepush-0.5.0-py3-none-any.whl |
|---|---|
| Size | 60.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea47392dc29a8959cfc8b1e7262e18637b735e275bcab7dc4cbf73ee3ff605df
|
|
BLAKE2b-256 checksum How to use checksums |
f61aa62240a1bf4c5d22c8d8c83fd6230d5a2b939b0bfd5cdb6243b52e529641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logSecurity for hotcodepush 0.5.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hotcodepush-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logA 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.