Skip to main content

Tiny utility that mimics 'afplay' in windows

Project description

afplay-win

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afplay_win-0.0.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afplay_win-0.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for afplay_win-0.0.2.tar.gz
Algorithm Hash digest
SHA256 66295f0177fba95b05d6fa551167beb206d33c2735d691dd83b25bf6f106b3fc
MD5 23c1aabaf26b852a06fe8afdc136db43
BLAKE2b-256 b2373b00f2793854b20ba78cb461cd861a46727cc85536e89e1f4ee523e1a14c

See more details on using hashes here.

Provenance

The following attestation bundles were made for afplay_win-0.0.2.tar.gz:

Publisher: publish.yml on sukhbinder/afplay-win

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for afplay_win-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83fb358055ee561445a316dd0c3ff6ca03442ef17f048114556d53d9bf8f3f06
MD5 1cfedd3902afe3e4b1f87fc51c00b9eb
BLAKE2b-256 e563459b9ed5b142e4599fc7b15a0272a2cd325330de61b118a0ff46869c53a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for afplay_win-0.0.2-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/afplay-win

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page