Skip to main content

A simple interface for playing music from an MP3 file.

Project description

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!

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

mp3play-0.1.7.zip (5.8 kB view details)

Uploaded Source

Built Distributions

mp3play-0.1.7-py2.5.egg (3.8 kB view details)

Uploaded Source

mp3play-0.1.7-py2.4.egg (2.5 kB view details)

Uploaded Source

File details

Details for the file mp3play-0.1.7.zip.

File metadata

  • Download URL: mp3play-0.1.7.zip
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mp3play-0.1.7.zip
Algorithm Hash digest
SHA256 c25f1e29c7c3d6325bf43b55a986307d7a6fbb43f97f89151ada6a42a81722dc
MD5 06459ea20944610292a021977f12122e
BLAKE2b-256 99675f1762db3c7de795c0cc95e312d215fb811f1695dd2e23640684a4f21b0b

See more details on using hashes here.

File details

Details for the file mp3play-0.1.7-py2.5.egg.

File metadata

  • Download URL: mp3play-0.1.7-py2.5.egg
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mp3play-0.1.7-py2.5.egg
Algorithm Hash digest
SHA256 b1940a297bf0199938d0cc688124ef57f9be4e1a4ec4640818eb6233127262e8
MD5 f7cd977e49114ec6c344c4bad9a365e3
BLAKE2b-256 3e7ed50c0cf19b57032b0d1b133b90c56c7a717be076c7da2a0048b2f666a9eb

See more details on using hashes here.

File details

Details for the file mp3play-0.1.7-py2.4.egg.

File metadata

  • Download URL: mp3play-0.1.7-py2.4.egg
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mp3play-0.1.7-py2.4.egg
Algorithm Hash digest
SHA256 52f16c28acdf98b172cb96eb16dba4bced6d66a8f118f723333ae92a79638dff
MD5 9b3fc39238ddf2e04d5ac65fe4c1cf55
BLAKE2b-256 035e724093d21661f099980d9c4221b6296c20e4943a733814b391dca77e9418

See more details on using hashes here.

Supported by

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