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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file mp3play-0.1.5.zip.

File metadata

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

File hashes

Hashes for mp3play-0.1.5.zip
Algorithm Hash digest
SHA256 92f56f7deb262b6d648a1e56b4e597a711862b05b67425bcf98a02f93560a19b
MD5 08bfdb514a52ece18231edd8cc78c7a8
BLAKE2b-256 f97bb3d61fc0ce4f54dc6d81eb5c4a096a9380ff351976c78d8a6fc552f3e24c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.5-py2.5.egg
Algorithm Hash digest
SHA256 7039383117e883b4ca57b660079b136a3f49536954e39716e9e9b61da75526c7
MD5 fe3a0d7c9ee54ccf78ed488f0c712d32
BLAKE2b-256 cff5cdea44c653e7041d670300f17b69444b2ce963b4d800f70cd922239aa14d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.5-py2.4.egg
Algorithm Hash digest
SHA256 6353b49af2e90944f06e9eb14c58705cfd7cf98da8a63d28a896cfcd57e883be
MD5 f5541f37c9dfa23f5fd54ee34c0f6358
BLAKE2b-256 8cec2089d875f94b4a7d7c72b3e0f54c17a77832d9858d4e7a545730eb8d44e7

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