X-Git-Url: https://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=musicpd.py;h=8c5bfc32c155e7cd1b8179ecdca217185239f591;hp=58edf56227afc9e1d4c26aef0fc75ff2941c2faa;hb=79fd7d84fe8acbc03b857c4ff483db9c16a0c5b1;hpb=bb0e60a2c9555cc92677d6711ccbea9cb235c1ea diff --git a/musicpd.py b/musicpd.py index 58edf56..8c5bfc3 100644 --- a/musicpd.py +++ b/musicpd.py @@ -30,7 +30,8 @@ ERROR_PREFIX = "ACK " SUCCESS = "OK" NEXT = "list_OK" VERSION = '0.4.5' -CONNECTION_TIMEOUT = 5 # seconds before a tcp connection attempt times out +#: seconds before a tcp connection attempt times out +CONNECTION_TIMEOUT = 5 def iterator_wrapper(func): @@ -134,7 +135,11 @@ class MPDClient: True >>> cli.host == environ['MPD_HOST'].split('@')[1] True - >>> # cli.connect() will use host/port as set in MPD_HOST/MPD_PORT + >>> cli.connect() # will use host/port as set in MPD_HOST/MPD_PORT + + :ivar str host: host used with the current connection + :ivar str,int port: port used with the current connection + :ivar str pwd: password detected in ``MPD_HOST`` environment variable .. warning:: Instance attribute host/port/pwd