{ "info": { "author": "alimiracle", "author_email": "alimiracle@riseup.net", "bugtrack_url": null, "classifiers": [], "description": "##pysystemd\na systemd binding Library in python\n\nits Support python 2.7, python3\n### install\nto install pysystemd use pip install pysystemd\n\n### How to use\n\nthis library contains 4 classes\n\n1- status\n\n\nthis class Contain Methods to query the status of the services\n\nit take the service name as Parameter\n\nto check if the service running or not you can use()\nis_running\n \"\"\" if the service running return 0. \"\"\"\n\nto check if the service enable or not you can use\nis_enable()\n\n \"\"\" if the service enabled return 0. \"\"\"\n\n2- services\n\nthis class use to \"\"\"manage the services like running and stop and reboot.\"\"\"\n\nit take the service name as Parameter\n\nto run service use\n\nstart()\n\nreturn 0 if Succeed.\n\nto stop service use\n\nstop()\n\nreturn 0 if Succeed.\n\nto restart service use restart()\n\nto relode service\n\nuse relode()\n\n3- list_services\n\nthis class use to list services\n\nto list all services\n\nuse list_all()\n\nits return services names as list\n\n\nto list all running services\n\nuse list_running()\n\nits return running services as list\n\n\nto list all not running services\nuse\nlist_dont_running()\nits return dont running services as list\n\nto list all enable services\nuse()\n\nlist_enable\nits return all enabled services as list \n\nto list all disable services\n\nuse\n\nlist_disable()\n\nits return all disabled services as list\n\n4- power\n\nthis class use to manage the power in the system\n\nto poweroff\n\nto poweroff the system use\n\npoweroff()\n\nthe reboot the system use\n\nreboot()\n\n\nto boot to rescue mode use\n\n\nrescue()\n\nto suspend the system use\n\nsuspend()", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://notabug.org/alimiracle/pysystemd", "keywords": "services,init,systemd", "license": "GPL v3", "maintainer": "", "maintainer_email": "", "name": "pysystemd", "package_url": "https://pypi.org/project/pysystemd/", "platform": "", "project_url": "https://pypi.org/project/pysystemd/", "project_urls": { "Homepage": "https://notabug.org/alimiracle/pysystemd" }, "release_url": "https://pypi.org/project/pysystemd/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "a systemd binding Library in python", "version": "1.0.3" }, "last_serial": 3988238, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "798938bfd2ad9e786d6038e4ac8e2807", "sha256": "483649cf4bd47f4e468f9303542427cc36cde38dda4f77e0742ede614519bc9a" }, "downloads": -1, "filename": "pysystemd-1.0.1.tar.gz", "has_sig": false, "md5_digest": "798938bfd2ad9e786d6038e4ac8e2807", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1782, "upload_time": "2018-06-07T07:49:22", "url": "https://files.pythonhosted.org/packages/86/5e/3a6fa5d21452c3f1e6d501a31536c4a7725ac07d98f182ffd1ffbe3b610a/pysystemd-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c6df30657849a0608173cb7736a27328", "sha256": "822fda75f70e132abc4c404575df2de147572266782ac082e7c77d8480baa098" }, "downloads": -1, "filename": "pysystemd-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c6df30657849a0608173cb7736a27328", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1935, "upload_time": "2018-06-17T20:03:28", "url": "https://files.pythonhosted.org/packages/d9/ad/ea41f9e45888e350b7ec31a05e75076e1c57c42c468ab8c7a29affef6145/pysystemd-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "a9499dc7ea8b1fe5f6c202a54f2df9c5", "sha256": "73b0149e4eb70a3f0eff320ce13b733468d3a85bd8110ab356dba9beb1c67c82" }, "downloads": -1, "filename": "pysystemd-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a9499dc7ea8b1fe5f6c202a54f2df9c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2277, "upload_time": "2018-06-22T06:03:45", "url": "https://files.pythonhosted.org/packages/c8/8d/11470ee2166e704e7a4edd6de709a866e7831a4174d0b3691e1763f6e776/pysystemd-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9499dc7ea8b1fe5f6c202a54f2df9c5", "sha256": "73b0149e4eb70a3f0eff320ce13b733468d3a85bd8110ab356dba9beb1c67c82" }, "downloads": -1, "filename": "pysystemd-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a9499dc7ea8b1fe5f6c202a54f2df9c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2277, "upload_time": "2018-06-22T06:03:45", "url": "https://files.pythonhosted.org/packages/c8/8d/11470ee2166e704e7a4edd6de709a866e7831a4174d0b3691e1763f6e776/pysystemd-1.0.3.tar.gz" } ] }