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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file mp3play-0.1.3.zip.

File metadata

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

File hashes

Hashes for mp3play-0.1.3.zip
Algorithm Hash digest
SHA256 3a6840f5bbc2121f676b1ce05db262e3f14c3e590dfc278af2f23d5690aaa0b4
MD5 48e97b42afb470d0e67859a51040effd
BLAKE2b-256 48e71332485119061a03ab382d7a3bbc30e303432b3cdbb71545c19818af8154

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.3-py2.5.egg
Algorithm Hash digest
SHA256 136583e27fb5f61930a44e01ef1941125174986faa0f6d386af73a9497d4a73d
MD5 6d07228b492f8d7c1bc6a3a8765c4cfd
BLAKE2b-256 cb3b079821876c7bc5c6ed3df2d79e8385dd7b182170b04f5bd170b9407a95d1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.3-py2.4.egg
Algorithm Hash digest
SHA256 af6f22c052f82c515d0eecbbe5f1e1632c3451f58c3900009ed468ebf3ac7702
MD5 f598aec3f8fe7bba66672cfb35aadffa
BLAKE2b-256 8e7edafa26596a9e86795bf72a0305f1b558b59abeb8a5499ee4f97ceb98d243

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