File: summary.txt

package info (click to toggle)
python-mpd 3.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 476 kB
  • sloc: python: 3,021; makefile: 187; sh: 9
file content (27 lines) | stat: -rw-r--r-- 1,235 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:Python scripts examples

Here follows some scripts using python-mpd to connect and play with your MPD server.

MPD server used in the script is localhost:6600, please adapt to your own configuration changing the proper var in the script header.
Examples

    Print out general stats: ExampleStats
    Random queue: ExampleRandomQueue
    Handling errors: ExampleErrorhandling
    Deal with mutli-tag files. Some sound files may define the same tag multiple times, here is a function to deal with it in your client: ExampleMultiTags
    idle command (python-mpd > 0.3 & mpd > 0.14) ExampleIdle
    Manipulate and query stickers: ExampleStickers


ExampleErrorhandling  demo of handling errors in long-running client
2010-11-29
ExampleIdle Using idle command  2010-12-14
ExampleMultiTags  How to deal with multi tag file 2009-09-15
ExampleRandomQueue  Queue song at random  2009-09-24
ExampleStats  Get general information of your MPD server  2009-09-12
ExampleStickers A command-line client for manipulating and querying stickers
2010-12-18
Examples  Some example scripts to show how to play with python-mpd  2010-12-18

The asyncio_example.py shows how MPD can be used with the asyncio idioms; it
requires at least Python 3.5 to run.