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

The package is not on PyPI yet, so install a commit of main by its SHA:

pip install git+https://github.com/hotcodepush-team/hotcodepush-python@<sha>

Or with uv:

uv add git+https://github.com/hotcodepush-team/hotcodepush-python@<sha>

Pin a commit and bump it on purpose, never @main.

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 optional argument you leave out stays out of the request; None sends null, which clears a field such as a channel's expires_at. users.get(user_id="me") answers the caller behind the token, as me addresses the caller wherever the API takes a {userId}.

An upload takes bytes or a file object with its content_length, and streams it. Bytes above 64 MiB go up in parts, and a retry sends them again; a file object is read once, so a failed upload of one is not retried.

Creating an organization, an invitation, an app, a channel, a release, a rollback, a bundle or a binary sends an Idempotency-Key, a UUID per call kept across the client's own retries; pass idempotency_key to reuse one when you retry the call yourself, and the API answers the first result again for 24 hours.

A failed request raises a HotCodePushError with the API's code, message and details and the HTTP status.

Documentation

The documentation lives at hotcodepush.com/docs/api/python.

Development

uv sync
uv run ruff format --check .
uv run ruff check .
uv run mypy
uv run pytest
uv build

uv run ruff format . formats the code.

License

See LICENSE.

Metadata

Release files for hotcodepush 0.1.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.1.0
File Size Uploaded Provenance
hotcodepush-0.1.0.tar.gz 120.3 kB With provenance Details

Built distribution (wheel)

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

Total release size: 179.6 kB

Release files / hotcodepush-0.1.0.tar.gz

Download URL hotcodepush-0.1.0.tar.gz
Size 120.3 kB
Tags Source
SHA-256 checksum
How to use checksums
506918be16e6ae50d0cf9add46754540d91f65f741136ae6764a4dabd62f986e
BLAKE2b-256 checksum
How to use checksums
9ca90b6db99a8c4a0adce2b36569a349c0a175eabe564db9f819a4893008ad2f
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 Oct 25, 2026.

Transparency log

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

Download URL hotcodepush-0.1.0-py3-none-any.whl
Size 59.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d04d1d9d09dc0cf2ebaf016c52d969f955ba64ddb51353137d4dcf8ae8d12ff3
BLAKE2b-256 checksum
How to use checksums
c54f2fc850e4128292a438f350f857da1ce0a01b384d649110bac2cc04efa634
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 Oct 25, 2026.

Transparency log

Security for hotcodepush 0.1.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.1.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 Oct 25, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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