{ "info": { "author": "Sumeet Singh", "author_email": "singhsays@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "syncli\n======\n\nPython CLI for Synology DSM.\n\nDependencies\n------------\n\n- Python 2.7 or greater\n- PyYaml\n- ``pip install pyyaml`` or ``easy_install pyyaml``\n- requests\n- ``pip install requests`` or ``easy_install requests``\n\nInstallation\n------------\n\n``pip install syncli``\n\nOR\n\n``git clone https://github.com/singhsaysdotcom/syncli.git ~/syncli``\n\n``ln -sf ~/syncli/syncli/syncli.py /usr/local/bin/syncli``\n\nUsage\n-----\n\nBasic syntax is ``syncli --host ``\n\nsyncli handles authentication in one of two ways. You can either specify\na username and password as command line options\n\n``syncli --host --username --password ``\n\nOR\n\nyou can put them in a configuration file ``~/.syncli.yaml`` by default.\nThe config file is a yaml file with the following structure.\n\n.. code:: yaml\n\n host:\n username: \n password: \n\nCredentials provided as command line arguments override values from the\nconfiguration file, if both exist.\n\n\\*\\*IMPORTANT: \\*\\* Currently authentication sends your credentials over\nhttp in plain text, so this is not safe to use at all over a public\nnetwork or the internet. syncli defaults to 'http' (DSM default), but\nyou override it with ``--proto=https``.\n\nCurrently Supported Operations\n------------------------------\n\n- reboot : reboots the device\n\n.. code:: bash\n\n $ syncli --host xxxxx reboot\n Done\n\n- shutdown : shuts down the device\n\n.. code:: bash\n\n $ syncli --host xxxxx shutdown\n Done\n\n- stats : prints stats from the resource monitor.\n\n.. code:: bash\n\n $ syncli --host xxxxx stats\n cpu: 0% loadavg: 119 115 114\n mem: 7% of 1GB\n\n- info : prints out system information\n\n.. code:: bash\n\n $ syncli --host xxxxx info\n ntpenabled : True\n ramsize : 1024\n usbdev : []\n usbbaselevel : 1\n ntpserver : ntp.xxxxxxx.xxx\n satadev : []\n timezone : Melbourne\n version : DSM 4.2-3211\n systemp : 34\n systime : 2013-07-03 05:53:39\n optime : 15:32:13\n model : DS412+\n serial : XXXXXXXXXX\n systempwarn : False\n\n- list\\_packages : lists all packages installed via the Package\n Manager.\n\n.. code:: bash\n\n $ syncli --host xxxxx list_packages\n Plex Media Server (stop)\n DHCP Server (running)\n CouchPotato Server (stop)\n Python (running)\n SABnzbd (stop)\n SickBeard (stop)\n\n- available\\_packages : lists all packages available for installation.\n\n.. code:: bash\n\n $ syncli --host xxxxx available_packages\n iTunes Server (1.1-2270)\n VPN Server (1.1-2267)\n Cloud Station (2.0-2402)\n Time Backup (1.2-2278)\n Surveillance Station (6.0-2636)\n Mono (2.11.1-0004)\n Syslog Server (2.1-2309)\n ...\n\n- start\\_package : start the named package.\n\n.. code:: bash\n\n $ syncli --host xxxxx --package 'Plex Media Server' start_package\n Done\n\n- stop\\_package : stops the named package.\n\n.. code:: bash\n\n $ syncli --host xxxxx --package 'Plex Media Server' stop_package\n Done", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/syncli/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "syncli", "package_url": "https://pypi.org/project/syncli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/syncli/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/syncli/" }, "release_url": "https://pypi.org/project/syncli/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Python CLI for Synology DSM.", "version": "0.0.3" }, "last_serial": 807218, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "1013f6b459a8973342c425b2edb21d88", "sha256": "b2e0f0de2034335e9aa2ba77fbcfb95939a6b4473af4737d907556eacf1c5094" }, "downloads": -1, "filename": "syncli-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1013f6b459a8973342c425b2edb21d88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4752, "upload_time": "2013-07-03T12:35:21", "url": "https://files.pythonhosted.org/packages/53/74/607a2b51df9aa5eedb6102985442a22687d17377f970f9fddb77f8f6b985/syncli-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "efdc454a0e726d2c90e4aebeadbbd9f6", "sha256": "cbf7bd403cb54f0e49ff1c7cfdc80f0659a3f170431b0db867a81be4dff68786" }, "downloads": -1, "filename": "syncli-0.0.3.tar.gz", "has_sig": false, "md5_digest": "efdc454a0e726d2c90e4aebeadbbd9f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5644, "upload_time": "2013-07-03T15:22:20", "url": "https://files.pythonhosted.org/packages/e2/76/cec830e62bfa7c2b90d36dde22efa6006a0245bfe7bb04f5885717b3be58/syncli-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "efdc454a0e726d2c90e4aebeadbbd9f6", "sha256": "cbf7bd403cb54f0e49ff1c7cfdc80f0659a3f170431b0db867a81be4dff68786" }, "downloads": -1, "filename": "syncli-0.0.3.tar.gz", "has_sig": false, "md5_digest": "efdc454a0e726d2c90e4aebeadbbd9f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5644, "upload_time": "2013-07-03T15:22:20", "url": "https://files.pythonhosted.org/packages/e2/76/cec830e62bfa7c2b90d36dde22efa6006a0245bfe7bb04f5885717b3be58/syncli-0.0.3.tar.gz" } ] }