{ "info": { "author": "Raghu Rajagopalan", "author_email": "raghu.nospam@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=========\npowertool\n=========\n\n\n.. image:: https://coveralls.io/repos/github/raghur/powertool/badge.svg?branch=master\n :target: https://coveralls.io/github/raghur/powertool?branch=master\n\n.. image:: https://img.shields.io/pypi/v/powertool.svg\n :target: https://pypi.python.org/pypi/powertool\n\n.. image:: https://travis-ci.org/raghur/powertool.svg?branch=master\n :target: https://travis-ci.org/raghur/powertool\n\n.. image:: https://readthedocs.org/projects/powertool/badge/?version=latest\n :target: https://powertool.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/raghur/powertool/shield.svg\n :target: https://pyup.io/repos/github/raghur/powertool/\n :alt: Updates\n\n.. image:: https://img.shields.io/pypi/pyversions/powertool.svg\n :target: https://pypi.python.org/pypi/powertool\n\nPython utility to wake up(wol) and suspend Linux machines remotely\n\n\n* Free software: MIT license\n\n\nFeatures\n--------\n\n* Wake up remote machines using hostname/ip.\n* Suspend remote machines using hostname\n\nWake on lan (WOL) \n-----------------\n\nWake up feature uses WOL magic packet. Since mac addresses are hard to remember/use, this tool lets you wake up or suspend machines\nby their name or IP.\n\n1. First register your machines ::\n\n powertool register -b 192.168.1.255 aa:bb:cc:dd:ee:ff you@host\n \n - `-b Broadcast_IP` - this is the subnet on which your machine's ip is. If your machine's ip is 192.168.1.xxx, then this is 192.168.1.255(default)\n - aa:bb:cc:dd:ee:ff - your machines' mac address. You can find this on your machine or on the router's device list.\n - you\\@host - your username on the remote host - this is used by the sleep function to do a passwordless ssh and run pm-suspend.\n\n2. `register` saves machine details so that you can later do this::\n\n powertool wol host\n powertool sleep host\n3. `register` just saves machine details to a `~/.powertool` as a json file.\n\nSleep/suspend\n---------------\n\nSleep/suspend feature has quite a few dependencies\n\n- you should have password-less ssh to the remote host. There are a lot of\n guides on the internet on how to set this up - like this one\n http://www.linuxproblem.org/art_9.html. Verify that it works by running `ssh\n user@host` - you should not be prompted for a password.\n- You should have `pm-utils` package on your remote machine\n http://manpages.ubuntu.com/manpages/precise/man8/pm-action.8.html\n- Your user should be able to run `sudo pm-suspend` without being prompted for\n password. To set this up, login to the remote machine and do the following::\n\n sudo visudo\n # add the following - where user is your username on the remote machine\n user ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n0.3.0 (2018-05-04)\n------------------\n\n* Dependency updates\n\n0.1.0 (2017-06-07)\n------------------\n\n* First release on PyPI.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/raghur/powertool", "keywords": "powertool", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "powertool", "package_url": "https://pypi.org/project/powertool/", "platform": "", "project_url": "https://pypi.org/project/powertool/", "project_urls": { "Homepage": "https://github.com/raghur/powertool" }, "release_url": "https://pypi.org/project/powertool/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Python utility to wake up(wol) and suspend Linux machines remotely", "version": "0.3.0" }, "last_serial": 3833978, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7c4b0e750ccd30885c35178a5f6f2789", "sha256": "9c654b45a4b69db26f53a1ee30b824b5c17d284bc79ecdfb6a199e6c2b986e77" }, "downloads": -1, "filename": "powertool-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7c4b0e750ccd30885c35178a5f6f2789", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5517, "upload_time": "2017-06-09T04:50:48", "url": "https://files.pythonhosted.org/packages/cb/92/3e7fac27a2961a0ee86ad5fdc269201eaeb7ecd8e9df2ee37038bf85a516/powertool-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5095cbff4717bd9943adeee5137cd8cc", "sha256": "cd17661cdc4131b0574264dec2a7f08082c67380558b3f13107e3263876058e1" }, "downloads": -1, "filename": "powertool-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5095cbff4717bd9943adeee5137cd8cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13595, "upload_time": "2017-06-09T04:50:46", "url": "https://files.pythonhosted.org/packages/45/63/f8cc1c8c19457f55460157d843eafc59e1feaee006142b47ab90d31831c3/powertool-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ee7f0760b8baad8c2d874f6cdbc06d9e", "sha256": "eb97cb61b7037f6e4e578f9e9fd17713b60a076ba07dc01fdc370960f4664b1e" }, "downloads": -1, "filename": "powertool-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ee7f0760b8baad8c2d874f6cdbc06d9e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7163, "upload_time": "2017-06-11T05:20:34", "url": "https://files.pythonhosted.org/packages/12/d7/fcd134a47a37204cfc0c426002041c5b13431c23606b12ca61502464c041/powertool-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d63dcd555071344697d9e348cebd2de", "sha256": "753951ef887d90622f3106f34f765c131a153e3ffc9441049b4bd61ac3ee1453" }, "downloads": -1, "filename": "powertool-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4d63dcd555071344697d9e348cebd2de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14788, "upload_time": "2017-06-11T05:20:36", "url": "https://files.pythonhosted.org/packages/68/52/e57c6cb2a51d49170a70891f7bf7a8d27ef817fd251658b56da8c781ed7a/powertool-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1c8815c921b6eb51d86a2ed6748aa8fd", "sha256": "ed5586f741fb5e61e9052740c057ca0fe727ce1a9ae62ff734ea6b755d25a5c9" }, "downloads": -1, "filename": "powertool-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1c8815c921b6eb51d86a2ed6748aa8fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19521, "upload_time": "2018-05-04T10:44:24", "url": "https://files.pythonhosted.org/packages/a6/63/6042b2ae908cb4f8eaab1b1afde64eefde4e17dee4b99490df0806882261/powertool-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c8815c921b6eb51d86a2ed6748aa8fd", "sha256": "ed5586f741fb5e61e9052740c057ca0fe727ce1a9ae62ff734ea6b755d25a5c9" }, "downloads": -1, "filename": "powertool-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1c8815c921b6eb51d86a2ed6748aa8fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19521, "upload_time": "2018-05-04T10:44:24", "url": "https://files.pythonhosted.org/packages/a6/63/6042b2ae908cb4f8eaab1b1afde64eefde4e17dee4b99490df0806882261/powertool-0.3.0.tar.gz" } ] }