{"id":15821241,"url":"https://github.com/flexoid/python-mpd","last_synced_at":"2025-04-01T06:37:37.088Z","repository":{"id":140081050,"uuid":"1341986","full_name":"flexoid/python-mpd","owner":"flexoid","description":"A fork of python-mpd from http://git.thejat.be/python-mpd.git to use python3.1 and metaclasses so the name of the methods be explicit","archived":false,"fork":false,"pushed_at":"2011-02-08T13:30:54.000Z","size":166,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T07:44:28.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexoid.png","metadata":{"files":{"readme":"README.txt","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-08T13:28:47.000Z","updated_at":"2014-03-25T01:45:47.000Z","dependencies_parsed_at":"2023-03-11T19:10:44.015Z","dependency_job_id":null,"html_url":"https://github.com/flexoid/python-mpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fpython-mpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fpython-mpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fpython-mpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fpython-mpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexoid","download_url":"https://codeload.github.com/flexoid/python-mpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598151,"owners_count":20802973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T07:21:12.577Z","updated_at":"2025-04-01T06:37:37.070Z","avatar_url":"https://github.com/flexoid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"python-mpd\n==========\n\nGetting python-mpd\n------------------\n\nThe latest release of python-mpd can be found at\nhttp://pypi.python.org/pypi/python-mpd/[].\n\n\nGetting the latest source code\n------------------------------\n\nIf you would instead like to use the latest source code, you can grab a copy\nof the development version from git by running the command:\n\n  git clone http://git.thejat.be/python-mpd.git\n\n\nInstalling from source\n----------------------\n\nTo install python-mpd from source, simply run the command:\n\n  python setup.py install\n\nYou can use the `--help` switch to `setup.py` for a complete list of commands\nand their options.  See the http://docs.python.org/inst/inst.html[Installing\nPython Modules] document for more details.\n\n\nUsing the client library\n------------------------\n\nThe client library can be used as follows:\n\n------------------------------------------------------------------------------\nclient = mpd.MPDClient()           # create client object\nclient.connect(\"localhost\", 6600)  # connect to localhost:6600\nprint client.mpd_version           # print the mpd version\nprint client.cmd(\"one\", 2)         # print result of the command \"cmd one 2\"\nclient.close()                     # send the close command\nclient.disconnect()                # disconnect from the server\n------------------------------------------------------------------------------\n\nA list of supported commands, their arguments (as MPD currently understands\nthem), and the functions used to parse their responses can be found in\n`doc/commands.txt`.  See\nhttp://mpd.wikia.com/wiki/MusicPlayerDaemonCommands[MusicPlayerDaemonCommands]\non the http://mpd.wikia.com/[MPD Wiki] for more details.\n\nCommand lists are also supported using `command_list_ok_begin()` and\n`command_list_end()`:\n\n------------------------------------------------------------------------------\nclient.command_list_ok_begin()       # start a command list\nclient.update()                      # insert the update command into the list\nclient.status()                      # insert the status command into the list\nresults = client.command_list_end()  # results will be a list with the results\n------------------------------------------------------------------------------\n\nCommands may also return iterators instead of lists if `iterate` is set to\n`True`:\n\n------------------------------------------------------------------------------\nclient.iterate = True\nfor song in client.listallinfo():\n    print song[\"file\"]\n------------------------------------------------------------------------------\n\nExtra care must be taken to exhaust the iterator before executing *any* other\ncommands.\n\n\nContacting the author\n---------------------\n\nYou can contact the author by emailing J. Alexander Treuman\n\u003cmailto:jat@spatialrift.net[]\u003e.  He can also be found idling in #mpd on\nirc.freenode.net as jat.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fpython-mpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexoid%2Fpython-mpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fpython-mpd/lists"}