Skip to main content

pycaw

Tests Coverage Status PyPI release PyPI version

Python Core Audio Windows Library, working for both Python2 and Python3.

Install

Latest stable release:

pip install pycaw

Development branch:

pip install https://github.com/AndreMiras/pycaw/archive/develop.zip

System requirements:

choco install visualcpp-build-tools

Usage

from ctypes import cast, POINTER
from comtypes import CLSCTX_ALL
from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume
devices = AudioUtilities.GetSpeakers()
interface = devices.Activate(
    IAudioEndpointVolume._iid_, CLSCTX_ALL, None)
volume = cast(interface, POINTER(IAudioEndpointVolume))
volume.GetMute()
volume.GetMasterVolumeLevel()
volume.GetVolumeRange()
volume.SetMasterVolumeLevel(-20.0, None)

See more in the examples directory.

Tests

See in the tests directory.

Metadata

Release files for pycaw 20230322

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycaw 20230322
File Size Uploaded Provenance Actions
pycaw-20230322.tar.gz 22.2 kB Without provenance Details for pycaw-20230322.tar.gz

Built distribution (wheel)

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

Total release size: 46.9 kB

Release files / pycaw-20230322.tar.gz

Download URL pycaw-20230322.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bfcfa037456895baeac9fa3205679e68bafe76367c302449844081733e8d8c00
BLAKE2b-256 checksum
How to use checksums
93942ca958dd5e0a26787ed451ac1a69c7a9525bddd9b9ec7e4ee73599bdbf46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pycaw-20230322-py3-none-any.whl

Download URL pycaw-20230322-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a72dd1419cb40715cca61670e3b8649c7a2eb1fd195767947eda81781775a50
BLAKE2b-256 checksum
How to use checksums
f94c83d55fe6e3bda3c40b4fb13a10da2be5970ecaddccf63bd9588b1d318b68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for pycaw 20230322

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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