Skip to main content

hotcodepush

PyPI

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 typed as ErrorCode, the error catalog, so a misspelled code fails the type check.

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.4.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 hotcodepush 0.4.0
File Size Uploaded Provenance Actions
hotcodepush-0.4.0.tar.gz 116.9 kB With provenance Details for hotcodepush-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hotcodepush 0.4.0
File Interpreter ABI Platform Actions
hotcodepush-0.4.0-py3-none-any.whl Python 3 none any Details for hotcodepush-0.4.0-py3-none-any.whl

Total release size: 176.6 kB

Release files / hotcodepush-0.4.0.tar.gz

Download URL hotcodepush-0.4.0.tar.gz
Size 116.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e540cea4bebeb616f4c059d45714881da3125f1a8218bfa3c2f31b9c16bc96bf
BLAKE2b-256 checksum
How to use checksums
68a0f3f612cadeecd780014d50fec39c0f5b44437bcbd7d786d785638d240ed1
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 log

Release files / hotcodepush-0.4.0-py3-none-any.whl

Download URL hotcodepush-0.4.0-py3-none-any.whl
Size 59.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd72a0127c5964d06fb2421348796858572abc36398264467e690fd256c4ac6a
BLAKE2b-256 checksum
How to use checksums
4d16be9e737877a6a0109aa96046dc7e2009c2a0d18035cd2258bd9faa276a91
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 log

Security for hotcodepush 0.4.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.

Select from 2 files

Attestation for hotcodepush-0.4.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 log

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