Skip to main content

mp3play

Allows your Windows Python program to play and stop MP3s, without opening an external player or requiring any external programs. A very simple interface for the common case (playing an entire MP3), with an API for more complex tasks (e.g. playing from seconds 30 to 45 of an MP3).

Example

Play the first 30 seconds of a file:

import mp3play

file = r'C:\Documents and Settings\Michael\Desktop\music.mp3'
mp3 = mp3play.Mp3(file)

mp3.play()

import time
time.sleep(min(30, mp3.seconds()))
mp3.stop()

Requirements

Requires Windows XP at the moment, but the goal is to make a cross-platform module. Feel free to send patches to add Linux and Mac support!

Resources

Please let me know if you like or use this module - it would make my day!

Metadata

Release files for mp3play 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mp3play 0.1.7
File Size Uploaded Provenance Actions
mp3play-0.1.7.zip 5.8 kB Without provenance Details for mp3play-0.1.7.zip

Built distributions (wheels)

Table of built distributions (wheels) for mp3play 0.1.7
File Interpreter ABI Platform Actions
mp3play-0.1.7-py2.5.egg Legacy Egg format - - Details for mp3play-0.1.7-py2.5.egg
mp3play-0.1.7-py2.4.egg Legacy Egg format - - Details for mp3play-0.1.7-py2.4.egg

Total release size: 12.1 kB

Release files / mp3play-0.1.7.zip

Download URL mp3play-0.1.7.zip
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c25f1e29c7c3d6325bf43b55a986307d7a6fbb43f97f89151ada6a42a81722dc
BLAKE2b-256 checksum
How to use checksums
99675f1762db3c7de795c0cc95e312d215fb811f1695dd2e23640684a4f21b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mp3play-0.1.7-py2.5.egg

Download URL mp3play-0.1.7-py2.5.egg
Size 3.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
b1940a297bf0199938d0cc688124ef57f9be4e1a4ec4640818eb6233127262e8
BLAKE2b-256 checksum
How to use checksums
3e7ed50c0cf19b57032b0d1b133b90c56c7a717be076c7da2a0048b2f666a9eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mp3play-0.1.7-py2.4.egg

Download URL mp3play-0.1.7-py2.4.egg
Size 2.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
52f16c28acdf98b172cb96eb16dba4bced6d66a8f118f723333ae92a79638dff
BLAKE2b-256 checksum
How to use checksums
035e724093d21661f099980d9c4221b6296c20e4943a733814b391dca77e9418
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mp3play 0.1.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.

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.

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