python-musicpd 0.9.0__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/CHANGES.txt +8 -0
  2. {python-musicpd-0.9.0/python_musicpd.egg-info → python_musicpd-0.9.1}/PKG-INFO +1 -1
  3. python_musicpd-0.9.1/doc/source/_commands.rst +195 -0
  4. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/commands.rst +2 -4
  5. {python-musicpd-0.9.0 → python_musicpd-0.9.1/doc/source/examples}/musicpd.py +17 -14
  6. python_musicpd-0.9.1/doc/source/python-musicpd.svg +1417 -0
  7. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/use.rst +3 -1
  8. python_musicpd-0.9.1/musicpd.py +813 -0
  9. {python-musicpd-0.9.0 → python_musicpd-0.9.1/python_musicpd.egg-info}/PKG-INFO +1 -1
  10. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/python_musicpd.egg-info/SOURCES.txt +3 -0
  11. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/LICENSE.txt +0 -0
  12. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/MANIFEST.in +0 -0
  13. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/README.rst +0 -0
  14. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/commands.txt +0 -0
  15. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/conf.py +0 -0
  16. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/contribute.rst +0 -0
  17. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/doc.rst +0 -0
  18. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/client.py +0 -0
  19. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/connect.py +0 -0
  20. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/connect_host.py +0 -0
  21. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/exceptions.py +0 -0
  22. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/findadd.py +0 -0
  23. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples/playback.py +0 -0
  24. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/examples.rst +0 -0
  25. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/doc/source/index.rst +1 -1
  26. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/pyproject.toml +0 -0
  27. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/python_musicpd.egg-info/dependency_links.txt +0 -0
  28. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/python_musicpd.egg-info/requires.txt +0 -0
  29. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/python_musicpd.egg-info/top_level.txt +0 -0
  30. {python-musicpd-0.9.0 → python_musicpd-0.9.1}/setup.cfg +0 -0
@@ -1,6 +1,14 @@
1
1
  python-musicpd Changes List
2
2
  ===========================
3
3
 
4
+ Changes in 0.9.1
5
+ ----------------
6
+
7
+ * Add playlistlength command
8
+ * Add stickernames command
9
+ * Add searchcount command
10
+ * Improved documentation, add supported commands rtype
11
+
4
12
  Changes in 0.9.0
5
13
  ----------------
6
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-musicpd
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: An MPD (Music Player Daemon) client library written in pure Python.
5
5
  Author-email: Kaliko Jack <kaliko@azylum.org>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -0,0 +1,195 @@
1
+ Below the commands list last updated for v0.9.1.
2
+
3
+ Querying MPD’s status
4
+ ^^^^^^^^^^^^^^^^^^^^^
5
+
6
+ Protocol documentation: `Querying MPD’s status <https://mpd.readthedocs.io/en/latest/protocol.html#querying-mpd-s-status>`_
7
+
8
+ * **clearerror** -> None
9
+ * **currentsong** -> dict
10
+ * **idle** -> list
11
+ * **status** -> dict
12
+ * **stats** -> dict
13
+
14
+ Playback Option
15
+ ^^^^^^^^^^^^^^^
16
+
17
+ Protocol documentation: `Playback Option <https://mpd.readthedocs.io/en/latest/protocol.html#playback-options>`_
18
+
19
+ * **consume** -> None
20
+ * **crossfade** -> None
21
+ * **mixrampdb** -> None
22
+ * **mixrampdelay** -> None
23
+ * **random** -> None
24
+ * **repeat** -> None
25
+ * **setvol** -> None
26
+ * **getvol** -> dict
27
+ * **single** -> None
28
+ * **replay_gain_mode** -> None
29
+ * **replay_gain_status** -> str
30
+ * **volume** -> None
31
+
32
+ Controlling playback
33
+ ^^^^^^^^^^^^^^^^^^^^
34
+
35
+ Protocol documentation: `Controlling playback <https://mpd.readthedocs.io/en/latest/protocol.html#controlling-playback>`_
36
+
37
+ * **next** -> None
38
+ * **pause** -> None
39
+ * **play** -> None
40
+ * **playid** -> None
41
+ * **previous** -> None
42
+ * **seek** -> None
43
+ * **seekid** -> None
44
+ * **seekcur** -> None
45
+ * **stop** -> None
46
+
47
+ The Queue
48
+ ^^^^^^^^^
49
+
50
+ Protocol documentation: `The Queue <https://mpd.readthedocs.io/en/latest/protocol.html#the-queue>`_
51
+
52
+ * **add** -> None
53
+ * **addid** -> str
54
+ * **clear** -> None
55
+ * **delete** -> None
56
+ * **deleteid** -> None
57
+ * **move** -> None
58
+ * **moveid** -> None
59
+ * **playlist** -> list
60
+ * **playlistfind** -> list[dict]
61
+ * **playlistid** -> list[dict]
62
+ * **playlistinfo** -> list[dict]
63
+ * **playlistsearch** -> list[dict]
64
+ * **plchanges** -> list[dict]
65
+ * **plchangesposid** -> list[dict]
66
+ * **prio** -> None
67
+ * **prioid** -> None
68
+ * **rangeid** -> None
69
+ * **shuffle** -> None
70
+ * **swap** -> None
71
+ * **swapid** -> None
72
+ * **addtagid** -> None
73
+ * **cleartagid** -> None
74
+
75
+ Stored playlists
76
+ ^^^^^^^^^^^^^^^^
77
+
78
+ Protocol documentation: `Stored playlists <https://mpd.readthedocs.io/en/latest/protocol.html#stored-playlists>`_
79
+
80
+ * **listplaylist** -> list
81
+ * **listplaylistinfo** -> list[dict]
82
+ * **listplaylists** -> dict
83
+ * **load** -> None
84
+ * **playlistadd** -> None
85
+ * **playlistclear** -> None
86
+ * **playlistdelete** -> None
87
+ * **playlistlength** -> dict
88
+ * **playlistmove** -> None
89
+ * **rename** -> None
90
+ * **rm** -> None
91
+ * **save** -> None
92
+
93
+ The music database
94
+ ^^^^^^^^^^^^^^^^^^
95
+
96
+ Protocol documentation: `The music database <https://mpd.readthedocs.io/en/latest/protocol.html#the-music-database>`_
97
+
98
+ * **albumart** -> dict
99
+ * **count** -> dict
100
+ * **getfingerprint** -> dict
101
+ * **find** -> list[dict]
102
+ * **findadd** -> None
103
+ * **list** -> list
104
+ * **listall** -> list[dict]
105
+ * **listallinfo** -> list[dict]
106
+ * **listfiles** -> list[dict]
107
+ * **lsinfo** -> list[dict]
108
+ * **readcomments** -> dict
109
+ * **readpicture** -> dict
110
+ * **search** -> list[dict]
111
+ * **searchadd** -> None
112
+ * **searchaddpl** -> None
113
+ * **searchcount** -> dict
114
+ * **update** -> str
115
+ * **rescan** -> str
116
+
117
+ Mounts and neighbors
118
+ ^^^^^^^^^^^^^^^^^^^^
119
+
120
+ Protocol documentation: `Mounts and neighbors <https://mpd.readthedocs.io/en/latest/protocol.html#mounts-and-neighbors>`_
121
+
122
+ * **mount** -> None
123
+ * **unmount** -> None
124
+ * **listmounts** -> list[dict]
125
+ * **listneighbors** -> list[dict]
126
+
127
+ Stickers
128
+ ^^^^^^^^
129
+
130
+ Protocol documentation: `Stickers <https://mpd.readthedocs.io/en/latest/protocol.html#stickers>`_
131
+
132
+ * **sticker get** -> str
133
+ * **sticker set** -> None
134
+ * **sticker delete** -> None
135
+ * **sticker list** -> list
136
+ * **sticker find** -> list[dict]
137
+ * **stickernames** -> list
138
+
139
+ Connection settings
140
+ ^^^^^^^^^^^^^^^^^^^
141
+
142
+ Protocol documentation: `Connection settings <https://mpd.readthedocs.io/en/latest/protocol.html#connection-settings>`_
143
+
144
+ * **password** -> None
145
+ * **ping** -> None
146
+ * **binarylimit** -> None
147
+ * **tagtypes** -> list
148
+ * **tagtypes disable** -> None
149
+ * **tagtypes enable** -> None
150
+ * **tagtypes clear** -> None
151
+ * **tagtypes all** -> None
152
+
153
+ Partition Commands
154
+ ^^^^^^^^^^^^^^^^^^
155
+
156
+ Protocol documentation: `Partition Commands <https://mpd.readthedocs.io/en/latest/protocol.html#partition-commands>`_
157
+
158
+ * **partition** -> None
159
+ * **listpartitions** -> list
160
+ * **newpartition** -> None
161
+ * **delpartition** -> None
162
+ * **moveoutput** -> None
163
+
164
+ Audio output devices
165
+ ^^^^^^^^^^^^^^^^^^^^
166
+
167
+ Protocol documentation: `Audio output devices <https://mpd.readthedocs.io/en/latest/protocol.html#audio-output-devices>`_
168
+
169
+ * **disableoutput** -> None
170
+ * **enableoutput** -> None
171
+ * **toggleoutput** -> None
172
+ * **outputs** -> list[dict]
173
+ * **outputset** -> None
174
+
175
+ Reflection
176
+ ^^^^^^^^^^
177
+
178
+ Protocol documentation: `Reflection <https://mpd.readthedocs.io/en/latest/protocol.html#reflection>`_
179
+
180
+ * **config** -> dict
181
+ * **commands** -> list
182
+ * **notcommands** -> list
183
+ * **urlhandlers** -> list
184
+ * **decoders** -> list[dict]
185
+
186
+ Client to Client
187
+ ^^^^^^^^^^^^^^^^
188
+
189
+ Protocol documentation: `Client to Client <https://mpd.readthedocs.io/en/latest/protocol.html#client-to-client>`_
190
+
191
+ * **subscribe** -> None
192
+ * **unsubscribe** -> None
193
+ * **channels** -> list
194
+ * **readmessages** -> list[dict]
195
+ * **sendmessage** -> None
@@ -1,4 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2018-2023 kaliko <kaliko@azylum.org>
1
+ .. SPDX-FileCopyrightText: 2018-2024 kaliko <kaliko@azylum.org>
2
2
  .. SPDX-License-Identifier: LGPL-3.0-or-later
3
3
 
4
4
  .. _commands:
@@ -13,6 +13,4 @@ Get current available commands:
13
13
  import musicpd
14
14
  print(' '.join([cmd for cmd in musicpd.MPDClient()._commands.keys()]))
15
15
 
16
- List, last updated for v0.8.0:
17
-
18
- .. literalinclude:: commands.txt
16
+ .. include:: _commands.rst
@@ -19,7 +19,7 @@ ERROR_PREFIX = "ACK "
19
19
  SUCCESS = "OK"
20
20
  NEXT = "list_OK"
21
21
  #: Module version
22
- VERSION = '0.9.0'
22
+ VERSION = '0.9.1'
23
23
  #: Seconds before a connection attempt times out
24
24
  #: (overriden by :envvar:`MPD_TIMEOUT` env. var.)
25
25
  CONNECTION_TIMEOUT = 30
@@ -185,14 +185,14 @@ class MPDClient:
185
185
  .. note:: This is the version of the protocol spoken, not the real version of the daemon."""
186
186
  self._reset()
187
187
  self._commands = {
188
- # Status Commands
188
+ # Querying MPD’s status # querying-mpd-s-status
189
189
  "clearerror": self._fetch_nothing,
190
190
  "currentsong": self._fetch_object,
191
191
  "idle": self._fetch_list,
192
192
  #"noidle": None,
193
193
  "status": self._fetch_object,
194
194
  "stats": self._fetch_object,
195
- # Playback Option Commands
195
+ # Playback Option # playback-options
196
196
  "consume": self._fetch_nothing,
197
197
  "crossfade": self._fetch_nothing,
198
198
  "mixrampdb": self._fetch_nothing,
@@ -205,7 +205,7 @@ class MPDClient:
205
205
  "replay_gain_mode": self._fetch_nothing,
206
206
  "replay_gain_status": self._fetch_item,
207
207
  "volume": self._fetch_nothing,
208
- # Playback Control Commands
208
+ # Controlling playback # controlling-playback
209
209
  "next": self._fetch_nothing,
210
210
  "pause": self._fetch_nothing,
211
211
  "play": self._fetch_nothing,
@@ -215,7 +215,7 @@ class MPDClient:
215
215
  "seekid": self._fetch_nothing,
216
216
  "seekcur": self._fetch_nothing,
217
217
  "stop": self._fetch_nothing,
218
- # Queue Commands
218
+ # The Queue # the-queue
219
219
  "add": self._fetch_nothing,
220
220
  "addid": self._fetch_item,
221
221
  "clear": self._fetch_nothing,
@@ -238,7 +238,7 @@ class MPDClient:
238
238
  "swapid": self._fetch_nothing,
239
239
  "addtagid": self._fetch_nothing,
240
240
  "cleartagid": self._fetch_nothing,
241
- # Stored Playlist Commands
241
+ # Stored playlists # stored-playlists
242
242
  "listplaylist": self._fetch_list,
243
243
  "listplaylistinfo": self._fetch_songs,
244
244
  "listplaylists": self._fetch_playlists,
@@ -246,11 +246,12 @@ class MPDClient:
246
246
  "playlistadd": self._fetch_nothing,
247
247
  "playlistclear": self._fetch_nothing,
248
248
  "playlistdelete": self._fetch_nothing,
249
+ "playlistlength": self._fetch_object,
249
250
  "playlistmove": self._fetch_nothing,
250
251
  "rename": self._fetch_nothing,
251
252
  "rm": self._fetch_nothing,
252
253
  "save": self._fetch_nothing,
253
- # Database Commands
254
+ # The music database # the-music-database
254
255
  "albumart": self._fetch_composite,
255
256
  "count": self._fetch_object,
256
257
  "getfingerprint": self._fetch_object,
@@ -266,20 +267,22 @@ class MPDClient:
266
267
  "search": self._fetch_songs,
267
268
  "searchadd": self._fetch_nothing,
268
269
  "searchaddpl": self._fetch_nothing,
270
+ "searchcount": self._fetch_object,
269
271
  "update": self._fetch_item,
270
272
  "rescan": self._fetch_item,
271
- # Mounts and neighbors
273
+ # Mounts and neighbors # mounts-and-neighbors
272
274
  "mount": self._fetch_nothing,
273
275
  "unmount": self._fetch_nothing,
274
276
  "listmounts": self._fetch_mounts,
275
277
  "listneighbors": self._fetch_neighbors,
276
- # Sticker Commands
278
+ # Stickers # stickers
277
279
  "sticker get": self._fetch_item,
278
280
  "sticker set": self._fetch_nothing,
279
281
  "sticker delete": self._fetch_nothing,
280
282
  "sticker list": self._fetch_list,
281
283
  "sticker find": self._fetch_songs,
282
- # Connection Commands
284
+ "stickernames": self._fetch_list,
285
+ # Connection settings # connection-settings
283
286
  "close": None,
284
287
  "kill": None,
285
288
  "password": self._fetch_nothing,
@@ -290,25 +293,25 @@ class MPDClient:
290
293
  "tagtypes enable": self._fetch_nothing,
291
294
  "tagtypes clear": self._fetch_nothing,
292
295
  "tagtypes all": self._fetch_nothing,
293
- # Partition Commands
296
+ # Partition Commands # partition-commands
294
297
  "partition": self._fetch_nothing,
295
298
  "listpartitions": self._fetch_list,
296
299
  "newpartition": self._fetch_nothing,
297
300
  "delpartition": self._fetch_nothing,
298
301
  "moveoutput": self._fetch_nothing,
299
- # Audio Output Commands
302
+ # Audio output devices # audio-output-devices
300
303
  "disableoutput": self._fetch_nothing,
301
304
  "enableoutput": self._fetch_nothing,
302
305
  "toggleoutput": self._fetch_nothing,
303
306
  "outputs": self._fetch_outputs,
304
307
  "outputset": self._fetch_nothing,
305
- # Reflection Commands
308
+ # Reflection # reflection
306
309
  "config": self._fetch_object,
307
310
  "commands": self._fetch_list,
308
311
  "notcommands": self._fetch_list,
309
312
  "urlhandlers": self._fetch_list,
310
313
  "decoders": self._fetch_plugins,
311
- # Client to Client
314
+ # Client to Client # client-to-client
312
315
  "subscribe": self._fetch_nothing,
313
316
  "unsubscribe": self._fetch_nothing,
314
317
  "channels": self._fetch_list,