A wrapper around macOS afplay
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
afplay-py-0.2.1.tar.gz
(2.2 MB
view details)
Built Distribution
File details
Details for the file afplay-py-0.2.1.tar.gz
.
File metadata
- Download URL: afplay-py-0.2.1.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db817726316940379789acf28835551585b4e65e23ca82d7d583bc684bf492aa |
|
MD5 | 291e9b63c5c0dc160e340602d98c73ff |
|
BLAKE2b-256 | 064cddc6f5f20bcba3d1ca58e1f0f57f7794180e7fd51726d633bfb68d160d14 |
File details
Details for the file afplay_py-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: afplay_py-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2bbd2b7528394c6c43301e2db046b469cb0acd4689259e0a981f96908339646 |
|
MD5 | a042e4d925ce68c2a5e93d6c56c9e455 |
|
BLAKE2b-256 | 1048a71f4f7e05149e5eb846aa57177bc289733eaa883b4e418a5d0f454c66ef |