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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file mp3play-0.1.2.zip.

File metadata

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

File hashes

Hashes for mp3play-0.1.2.zip
Algorithm Hash digest
SHA256 e17492a6dc320f806405b3a0dd1319eb69766f1c7c39fc06a2376504d7223423
MD5 cb4850a8d15cf704587251bbd32da92e
BLAKE2b-256 913fe3905888385fea3a4144f7ee569357ca77b5abde20e0fcaebea7fa380978

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.2-py2.5.egg
Algorithm Hash digest
SHA256 046928f2f9d61e5ccf439ff1d06349833dd59898be1dc3ca095bc3a0ecedfbce
MD5 6992050aac1e84b22276ae4cdf9105b1
BLAKE2b-256 f92544420ef495456291c08039350d2ccd345f918a6d4d54ef67ddae6fa21758

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mp3play-0.1.2-py2.4.egg
Algorithm Hash digest
SHA256 4397cc3e905d167b0c9136c5cce4f80287db9c18e80fd4ce2eaeaf249e34abff
MD5 0d1d44f389130392bc4dd33a9d76a7bd
BLAKE2b-256 bfdd945686209722a80329e6e00a33d435d4f1776e1b669eefe81d36bf875ab7

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