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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| afplay-py-0.2.1.tar.gz | 2.2 MB | Without provenance | Details for afplay-py-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| afplay_py-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for afplay_py-0.2.1-py3-none-any.whl |
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
|
Security for afplay-py 0.2.1
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.