Open Screen Cast Sender
This package provides Python bindings for the Google Open Screen Sender library. It allows you to cast media files to a Chromecast device natively from Python.
Installation
pip install cast_sender
Usage and Settings
1. Initialize the Environment
The CastRuntime handles the underlying C++ TaskRunner and event loop.
import cast_sender
env = cast_sender.CastRuntime()
2. Initialize the Sender
Create a CastSender instance by providing the target receiver's IP address and
port.
# ip_address: Target Cast Receiver's IP (e.g., "192.168.1.50")
# port: Cast V2 connection port (typically 8009)
# cert_path: (Optional) Path to a PEM developer root CA certificate.
sender = cast_sender.CastSender(env=env, ip_address="192.168.1.50", port=8009, cert_path="")
3. Configure the Stream Settings
The StreamConfig object allows you to customize the streaming session:
config = cast_sender.StreamConfig()
# (Required)
# file_path: Absolute local path to the video container.
config.file_path = "/path/to/video.mp4"
# (Optional)
# remote_transport_id: Destination receiver transport ID. Bypasses receiver app LAUNCH if provided.
# session_id: Pre-launched receiver app session ID. Used for a clean STOP.
# codec_name: Supported video encoder codec string (e.g., "vp8", "vp9", "av1"). Default is "vp8".
# max_bitrate: Peak aggregate bitrate (audio + video) in bps. Default is 5242880 (5 Mbps).
# should_include_audio: If False, negotiates a video-only mirroring session. Default is True.
config.remote_transport_id = ""
config.session_id = ""
config.codec_name = "vp8"
config.max_bitrate = 5242880
config.should_include_audio = True
4. Start Streaming
Initiates the Cast session connection, media negotiation, and streaming over UDP.
# is_debug: (Optional) If True, sets the internal log level to INFO. Default is False.
sender.stream_video(config=config, is_debug=True)
5. Teardown
Gracefully stop active streaming and shut down network sockets:
sender.teardown()
Metadata
Release files for cast-sender 1.0.3
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 |
|---|---|---|---|---|
| cast_sender-1.0.3.tar.gz | 594.1 kB | With provenance | Details for cast_sender-1.0.3.tar.gz |
Built distributions (wheels)
Total release size: 369.0 MB
Release files / cast_sender-1.0.3.tar.gz
| Download URL | cast_sender-1.0.3.tar.gz |
|---|---|
| Size | 594.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e60cea2e71bd5751706bed84fe2f491675b2e82edbb0394520839f5b1841c26c
|
|
BLAKE2b-256 checksum How to use checksums |
f5e0077c407f23e13d85427582ab611cc586fa67e49d9c7180c08bc2d86c92ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp314-cp314-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp314-cp314-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.14 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
43cd786b114e1d206550f3924e07f511f0add48e9ee47eb533f5e9d2fdd29910
|
|
BLAKE2b-256 checksum How to use checksums |
1404ef96a5440fca18a8d559f49884f45050b537d95eadd9f407674507a0cc72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp313-cp313-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp313-cp313-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.13 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
4d6d7ba41df619859efcf1fe7494358684817424e1eb53f01f8c891ddf9834d1
|
|
BLAKE2b-256 checksum How to use checksums |
5814d80c48e48b7dc5d8c8fade6eb01b0b8176ee81999acb65ac8f8619a82d3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp312-cp312-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp312-cp312-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.12 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
94ac3eaa6938cf3a69d569b656247f84f4eb399aaae1f6304d59a0dfe86e3d8f
|
|
BLAKE2b-256 checksum How to use checksums |
07532f99b0d38993a2e3f9c9ad8da8c6a14c791eddbaad12ba3c852b1c2f44cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp311-cp311-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp311-cp311-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.11 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
1d4935d213906f595d201313c02d6929465c4b2c9d75f593c6adfe1528a73e1a
|
|
BLAKE2b-256 checksum How to use checksums |
77263b6e5de13c6ca1b05d85415cbcf87d160652e593b9ccc1137b634281310c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp310-cp310-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp310-cp310-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
e4afc0b3d7c11645786ecf349a162ad188912da83f94beff17ff65ade671ce13
|
|
BLAKE2b-256 checksum How to use checksums |
03bb7428cfbb391a8fd20697dd29ad22a48fa9fee8b2492ef6be71dd6249c1a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / cast_sender-1.0.3-cp39-cp39-manylinux_2_35_aarch64.whl
| Download URL | cast_sender-1.0.3-cp39-cp39-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 61.4 MB |
| Tags | CPython 3.9 Linux glibc 2.35+ ARM64 |
|
SHA-256 checksum How to use checksums |
a2264197db5e186c66af86eb7bb87f0c76509fb60554e40628fa00ed867fda00
|
|
BLAKE2b-256 checksum How to use checksums |
a24f3e989bdd454b1c047252212478adeff06a2260dd01fe65aa24b61da3cd2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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 Google Cloud, verified by PyPI on Aug 3, 2026.
Transparency logSecurity for cast-sender 1.0.3
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 7 files in this release have been uploaded with provenance metadata.
Attestation for cast_sender-1.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by Google Cloud, verified by PyPI on Aug 3, 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.