Skip to main content

python-musicpd

Getting python-musicpd

The latest release of python-musicpd can be found at http://pypi.python.org/pypi/python-musicpd.

Getting the latest source code

If you would instead 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://git.kaliko.me/python-musicpd.git

Installing from source

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

python3 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.

Using the client library

The client library can be used as follows:

>>> client = mpd.MPDClient()           # create client object
>>> client.connect("localhost", 6600)  # connect to localhost:6600
>>> print client.mpd_version           # print the mpd version
>>> print client.cmd("one", 2)         # print result of the command "cmd one 2"
>>> client.close()                     # send the close command
>>> client.disconnect()                # disconnect from the server

A list of supported commands, their arguments (as MPD currently understands them), and the functions used to parse their responses can be found in doc/commands.txt. See the MPD protocol documentation for more details.

Command lists are also supported using command_list_ok_begin() and command_list_end()

>>> client.command_list_ok_begin()       # start a command list
>>> client.update()                      # insert the update command into the list
>>> client.status()                      # insert the status command into the list
>>> results = client.command_list_end()  # results will be a list with the results

Commands may also return iterators instead of lists if iterate is set to True:

>>> client.iterate = True
>>> for song in client.playlistinfo():
>>>     print song["file"]

Contacting authors

You can contact the original author by emailing J. Alexander Treuman <jat⊘spatialrift.net>. He can also be found idling in #mpd on irc.freenode.net as jat.

The current maintainer can be found on xmpp chat room <kaliko.me⊘conf.azylum.org> or you can contact him by email/xmpp <kaliko⊘azylum.org>.

Metadata

Release files for python-musicpd 0.4.0pr1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for python-musicpd 0.4.0pr1
File Size Uploaded
python-musicpd-0.4.0pr1.zip 24.9 kB Details
python-musicpd-0.4.0pr1.tar.gz 22.1 kB Details
python-musicpd-0.4.0pr1.tar.bz2 19.2 kB Details

Release files / python-musicpd-0.4.0pr1.zip

Download URL python-musicpd-0.4.0pr1.zip
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a87b84c5e25bd05a326b813c42a580425ddbf045787802fe3119806341a7867
BLAKE2b-256 checksum
How to use checksums
e6e3de74c7b02989135fd3e6754c7d01eb55ad041a72cdcc479f4c01942e6cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python-musicpd-0.4.0pr1.tar.gz

Download URL python-musicpd-0.4.0pr1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
539ef711491be11fc391980aef77eaa7f92d48ce6413dd3c0572c253d160fd6c
BLAKE2b-256 checksum
How to use checksums
d5fbcda75061e32d633eb0f8163871da38a900d6567dff00046cd606c8b0a774
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python-musicpd-0.4.0pr1.tar.bz2

Download URL python-musicpd-0.4.0pr1.tar.bz2
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2386ba196cf85fae000a2d7dd804ae25c0263976b0f057c969e93e72c16ae345
BLAKE2b-256 checksum
How to use checksums
7d260a8ac3eeb16b6b8eb63a198737a95634d455b5b8a8d3f0af6a3e67af8361
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

3 release files

0.4.1

3 release files

0.4.0

3 release files

This release

0.4.0pr1 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page