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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file mp3play-0.1.4.zip.

File metadata

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

File hashes

Hashes for mp3play-0.1.4.zip
Algorithm Hash digest
SHA256 d13da93d7986ca9755a4ec7633477a1408722f89812e695d44b2258471fa4893
MD5 aefb2d86d6d2e4744943a1d60cd8312b
BLAKE2b-256 55408d04a682ef9715f0a1b4b114d1c85f417992ef7760762299b384cee71b6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.4-py2.5.egg
Algorithm Hash digest
SHA256 4f65e191855b30247090f0dfd4756449453d70ea867c3f6f52791347a0faf846
MD5 d4ddcad0eeb2e5c759860cb3577c84f9
BLAKE2b-256 cd32503dc188ea9149abae8434872cb2ee8cbc62e3844ec1c028709735543869

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.4-py2.4.egg
Algorithm Hash digest
SHA256 59db36cf2768ddde6bd59e6dc397bddb8177fe13b48e8a1b08e80beaa69cfaa6
MD5 1a9ac4681c3bdd354e58abee74d78703
BLAKE2b-256 672aacf51965939d7949a22bbf484ab89e12ca198a612afaaa70ce8afff858e3

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