webpush-rs
Fast Web Push (VAPID + AES128GCM)
for Python — the Rust web-push crate behind
a PyO3 binding.
The VAPID JWT signing and payload encryption run in native Rust; Python sees a
single blocking send_one. Compared to a pure-Python sender it roughly halves
per-send CPU and adds no Python dependency footprint (the crypto is statically
linked, not pulled in as cryptography/http-ece).
End-to-end latency is dominated by the network round-trip to the push service (FCM/Apple), so this is not "faster delivery" — it's lower CPU and memory on the sending host, which matters when fanning out to many subscribers.
Install
pip install webpush-rs # or: uv pip install webpush-rs
Prebuilt wheels are published for CPython 3.8+ (abi3, one wheel per platform) on Linux (manylinux x86_64 + aarch64), macOS, and Windows.
Usage
import asyncio
import webpush_rs
# send_one is blocking (it drives a small internal Tokio runtime); call it off
# the event loop from async code.
status = await asyncio.to_thread(
webpush_rs.send_one,
endpoint, # subscription.endpoint
p256dh, # subscription.keys.p256dh
auth, # subscription.keys.auth
vapid_private, # url-safe base64 VAPID private key
"mailto:you@example.com", # VAPID subject (mailto: or https URL)
payload_bytes, # the notification payload
)
# 201 = delivered; 404/410 = endpoint gone (delete the subscription); 0 = error (raises).
License
MIT OR Apache-2.0.
Metadata
Release files for webpush-rs 0.1.4
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 |
|---|---|---|---|---|
| webpush_rs-0.1.4.tar.gz | 23.3 kB | With provenance | Details for webpush_rs-0.1.4.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| webpush_rs-0.1.4-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for webpush_rs-0.1.4-cp38-abi3-win_amd64.whl |
| webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ x86-64 | Details for webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl |
| webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ ARM64 | Details for webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_aarch64.whl |
| webpush_rs-0.1.4-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for webpush_rs-0.1.4-cp38-abi3-macosx_11_0_arm64.whl |
| webpush_rs-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details for webpush_rs-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl |
Total release size: 14.2 MB
Release files / webpush_rs-0.1.4.tar.gz
| Download URL | webpush_rs-0.1.4.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e475b1e4bb5803fff205d16b54a4d60a56779fef74485991ffdebb826547777
|
|
BLAKE2b-256 checksum How to use checksums |
1e653ff9628fd939684744626858e555bb00b06c070f1d638fa750100ad07cdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / webpush_rs-0.1.4-cp38-abi3-win_amd64.whl
| Download URL | webpush_rs-0.1.4-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d6ac3c6a4678c76e34da672195fb5e65b15a237d54e20e231404128b3e96f754
|
|
BLAKE2b-256 checksum How to use checksums |
764d3b9f05bbb3de741c48b3dddf703623e81ccd10ecbef637ba45d845de22ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl
| Download URL | webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2e8d07f28f954a009925657b7cbe3a02329bddf6fb05423191c40a751b87d399
|
|
BLAKE2b-256 checksum How to use checksums |
0ef3b2a3bf57ad014c2a3ac667665aa6922cb2d6b64e0321922be87737b823b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_aarch64.whl
| Download URL | webpush_rs-0.1.4-cp38-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
472f95b8b40f135ad9c6e446dc9fe2e74bc0a1b15c86b5a2b9bf66b62bcd9659
|
|
BLAKE2b-256 checksum How to use checksums |
4051bc21a1807a7f5671c48adb09ae8e9de54c619f6be3abc1961ed5690ca881
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / webpush_rs-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | webpush_rs-0.1.4-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7aaadcfce995473e524534a0d219a7230d345ff96eb6be262289b6aa0f3b3275
|
|
BLAKE2b-256 checksum How to use checksums |
d2108a7c208a703f99d9fada796097a84c15ed006f4c98a497775e1df4d9d73e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logRelease files / webpush_rs-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | webpush_rs-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
709f1716482992a5e2a7f0513d25eb43cadc26038359cb085e0a5ddda8573563
|
|
BLAKE2b-256 checksum How to use checksums |
0a2ef58bd14b44bcbd89b03c3272db5396bebb06373162e84567d3287d62f0ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 31, 2026.
Transparency logSecurity for webpush-rs 0.1.4
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 6 files in this release have been uploaded with provenance metadata.
Attestation for webpush_rs-0.1.4.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 May 31, 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.