Skip to main content

afplay-py

A python wrapper and better CLI for the macOS tool afplay (audio-file player).

Installation

From pip:

pip install afplay-py

From source (from the root project directory):

pip install .

Quick Usage

CLI

Play an audio file using the CLI:

afplay-py ~/path/to/file.mp3

NOTE: The intent is for this CLI to not have some of the problems the regular tool does.

Python

Play an audio file using Python:

from afplay import afplay

afplay("path/to/file.mp3", volume=2, time=100, leaks=True)

Check if afplay is installed:

from afplay import is_installed

print(is_installed())

Metadata

Release files for afplay-py 0.2.1

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

Source distribution (sdist)

Source distribution for afplay-py 0.2.1
File Size Uploaded
afplay-py-0.2.1.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for afplay-py 0.2.1
File Interpreter ABI Platform
afplay_py-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / afplay-py-0.2.1.tar.gz

Download URL afplay-py-0.2.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
db817726316940379789acf28835551585b4e65e23ca82d7d583bc684bf492aa
BLAKE2b-256 checksum
How to use checksums
064cddc6f5f20bcba3d1ca58e1f0f57f7794180e7fd51726d633bfb68d160d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18

Release files / afplay_py-0.2.1-py3-none-any.whl

Download URL afplay_py-0.2.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2bbd2b7528394c6c43301e2db046b469cb0acd4689259e0a981f96908339646
BLAKE2b-256 checksum
How to use checksums
1048a71f4f7e05149e5eb846aa57177bc289733eaa883b4e418a5d0f454c66ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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