Skip to main content

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

Metadata

Release files for afplay-win 0.0.2

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-win 0.0.2
File Size Uploaded Provenance
afplay_win-0.0.2.tar.gz 8.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for afplay-win 0.0.2
File Interpreter ABI Platform
afplay_win-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / afplay_win-0.0.2.tar.gz

Download URL afplay_win-0.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
66295f0177fba95b05d6fa551167beb206d33c2735d691dd83b25bf6f106b3fc
BLAKE2b-256 checksum
How to use checksums
b2373b00f2793854b20ba78cb461cd861a46727cc85536e89e1f4ee523e1a14c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

Release files / afplay_win-0.0.2-py3-none-any.whl

Download URL afplay_win-0.0.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83fb358055ee561445a316dd0c3ff6ca03442ef17f048114556d53d9bf8f3f06
BLAKE2b-256 checksum
How to use checksums
e563459b9ed5b142e4599fc7b15a0272a2cd325330de61b118a0ff46869c53a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

Security for afplay-win 0.0.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for afplay_win-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

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