Tiny utility that mimics 'afplay' in windows
Project description
afplay-win
Tiny utility that mimics 'afplay' in windows
For a background on this please read this post
Installation
Install this tool using pip:
pip install afplay-win
Usage
For help, run:
afplay --help
You can also use:
python -m afplay --help
Seek Functionality
You can start playback from a specific time position using the --seek or -t option:
# Play from 30 seconds into the file
afplay song.mp3 --seek 30
afplay song.mp3 -t 30
# Play from 1 minute 30 seconds into the file
afplay song.mp3 --seek 1:30
afplay song.mp3 -t 1:30
# Play from 1 hour 10 minutes 30 seconds into the file
afplay song.mp3 --seek 1:10:30
afplay song.mp3 -t 1:10:30
Supported time formats:
SS: seconds (e.g.,30)MM:SS: minutes:seconds (e.g.,1:30)HH:MM:SS: hours:minutes:seconds (e.g.,1:10:30)
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd afplay-win
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
Inspiration
This implementation is inspired from playsound3
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file afplay_win-0.0.2.tar.gz.
File metadata
- Download URL: afplay_win-0.0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66295f0177fba95b05d6fa551167beb206d33c2735d691dd83b25bf6f106b3fc
|
|
| MD5 |
23c1aabaf26b852a06fe8afdc136db43
|
|
| BLAKE2b-256 |
b2373b00f2793854b20ba78cb461cd861a46727cc85536e89e1f4ee523e1a14c
|
Provenance
The following attestation bundles were made for afplay_win-0.0.2.tar.gz:
Publisher:
publish.yml on sukhbinder/afplay-win
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
afplay_win-0.0.2.tar.gz -
Subject digest:
66295f0177fba95b05d6fa551167beb206d33c2735d691dd83b25bf6f106b3fc - Sigstore transparency entry: 908937414
- Sigstore integration time:
-
Permalink:
sukhbinder/afplay-win@473dce161430e952737b04c233373a33cc809491 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@473dce161430e952737b04c233373a33cc809491 -
Trigger Event:
release
-
Statement type:
File details
Details for the file afplay_win-0.0.2-py3-none-any.whl.
File metadata
- Download URL: afplay_win-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83fb358055ee561445a316dd0c3ff6ca03442ef17f048114556d53d9bf8f3f06
|
|
| MD5 |
1cfedd3902afe3e4b1f87fc51c00b9eb
|
|
| BLAKE2b-256 |
e563459b9ed5b142e4599fc7b15a0272a2cd325330de61b118a0ff46869c53a1
|
Provenance
The following attestation bundles were made for afplay_win-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/afplay-win
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
afplay_win-0.0.2-py3-none-any.whl -
Subject digest:
83fb358055ee561445a316dd0c3ff6ca03442ef17f048114556d53d9bf8f3f06 - Sigstore transparency entry: 908937416
- Sigstore integration time:
-
Permalink:
sukhbinder/afplay-win@473dce161430e952737b04c233373a33cc809491 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@473dce161430e952737b04c233373a33cc809491 -
Trigger Event:
release
-
Statement type: