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.6.zip (5.8 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file mp3play-0.1.6.zip.

File metadata

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

File hashes

Hashes for mp3play-0.1.6.zip
Algorithm Hash digest
SHA256 e68cb1b789144f36ad7e4ea108f877f0d102840fbdb3026790728d17193c451f
MD5 e8b05c9bd7dbe686ce3fecff06785b29
BLAKE2b-256 bcbe6478edf99c8221c9c322d255295501780e80fe9caca1016dbb31724c881d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.6-py2.5.egg
Algorithm Hash digest
SHA256 107a0ab6c8a0c2435f55589d1fe8909409f48b1c5190b2f4d3443cea86d2b802
MD5 11d5457d204b731916484a717240edaa
BLAKE2b-256 caf06fff008adc7cd7c092fd56b226e3301a0906c782d61d797459f3b2f76f8c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.6-py2.4.egg
Algorithm Hash digest
SHA256 b2adf24a332d5564e9deaf0106b68efb61bbec4cf97b3132e114ed1f260cd7e7
MD5 5cd1fa96f5fe19c4f03092aaa17777a2
BLAKE2b-256 04a1a242df26e26cb8bc45625c662daa8f2df0ea300356f0a6009810943cd536

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