Skip to main content

A Python MPD client library

Project description

Build Status

python-mpd2 is a Python library which provides a client interface for the Music Player Daemon.

Difference with python-mpd

python-mpd2 is a fork of python-mpd. While 0.4.x was backwards compatible with python-mpd, starting with 0.5 provides enhanced features which are NOT backward compatibles with the original python-mpd package. (see PORTING.txt for more information)

The following features were added:

  • Python 3 support (but you need at least Python 2.6)

  • support for the upcoming client-to-client protocol

  • support for new commands from MPD (seekcur, prio, prioid, config, searchadd, searchaddpl, listfiles, rangeid, addtagid, cleartagid, mount, umount, listmounts, listneighbors)

  • remove deprecated commands (volume)

  • explicitly declared MPD commands (which is handy when using for example IPython)

  • a test suite

  • API documentation to add new commands (see Future Compatible)

  • support for Unicode strings in all commands (optionally in python2, default in python3 - see Unicode Handling)

  • configureable timeouts

  • support for logging

  • improved support for sticker

  • improved support for ranges

Getting the latest source code

If you would like to use the latest source code, you can grab a copy of the development version from Git by running the command:

$ git clone git://github.com/Mic92/python-mpd2.git

Getting the latest release

The latest stable release of python-mpd2 can be found on PyPI

PyPI:

$ pip install python-mpd2

Installation in Linux/BSD distributions

Until Linux distributions adapt this package, here are some ready to use packages to test your applications:

See INSTALL.rst

Installing from source

To install python-mpd2 from source, simply run the command:

$ python setup.py install

You can use the –help switch to setup.py for a complete list of commands and their options. See the Installing Python Modules document for more details.

Documentation

Documentation

Getting Started

Command Reference

Examples

Testing

Just run:

$ python setup.py test

This will install Tox. Tox will take care of testing against all the supported Python versions (at least available) on our computer, with the required dependencies

Building Documentation

Install Sphinx:

$ easy_install -U Sphinx

Change to the source directory an run:

$ python ./setup.py build_sphinx

The command reference is generated from the official mpd protocol documentation. In order to update it, install python-lxml and run the following command:

$ python ./doc/generate_command_reference.py > ./doc/topics/commands.rst

Contacting the author

Just contact me (Mic92) on Github or via email (joerg@higgsboson.tk).

Usually I hang around on Jabber in the channel ist@higgsboson.tk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

python-mpd2-0.5.5.zip (46.1 kB view details)

Uploaded Source

python-mpd2-0.5.5.tar.gz (37.4 kB view details)

Uploaded Source

python-mpd2-0.5.5.tar.bz2 (32.9 kB view details)

Uploaded Source

File details

Details for the file python-mpd2-0.5.5.zip.

File metadata

  • Download URL: python-mpd2-0.5.5.zip
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-mpd2-0.5.5.zip
Algorithm Hash digest
SHA256 7a32caabb255964b1ea01f51ec2b0c72fdaba74110b8403e251bdf304c98469a
MD5 158df68814367412904bfe4bb9f4aa21
BLAKE2b-256 8c6073bc885b7f0fa4717c513759d39e4d1542fec6d462cc87479801fa111569

See more details on using hashes here.

File details

Details for the file python-mpd2-0.5.5.tar.gz.

File metadata

  • Download URL: python-mpd2-0.5.5.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-mpd2-0.5.5.tar.gz
Algorithm Hash digest
SHA256 310e738c4f7ce5b5b10394ec3f182c5240dd3ec55ec59a375924c8004fbb5e51
MD5 de7af99823cf098acf92d451db2401eb
BLAKE2b-256 451b7d547aa74c0dc6573a069dcc3bd4c4a000725f1f0121472948d0ef3f3ab3

See more details on using hashes here.

File details

Details for the file python-mpd2-0.5.5.tar.bz2.

File metadata

  • Download URL: python-mpd2-0.5.5.tar.bz2
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-mpd2-0.5.5.tar.bz2
Algorithm Hash digest
SHA256 6a5006886951c07cf19e54696706380fc8c4cac3f627b3bee181d21e8eebd9bd
MD5 50ba833dbfda7fca30088ed1deabe351
BLAKE2b-256 71d29330c355344bd0ce1d82d25ae841642d91b70a0272a764c646f6b4ed4e8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page