{ "info": { "author": "Riccardo Attilio Galli", "author_email": "riccardo@sideralis.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "runstatus - detect if a program is already running\n=============================================================\n\nKnowing if a program is already running can be useful in many situations.\nFor example\n\n* avoid running operations that do not expect to be executed twice or more \n simultaneously\n* improve the usability of a software so that the user does not end up having \n multiple instances of the same program open at once.\n\nAll of this in a cross-platform python library .\n\nThe library is trivial to use::\n\n import runstatus\n\n if runstatus.already_running('myAppName'):\n print('do something, e.g. exiting')\n exit(0)\n\nThe library comes with various functions:\n\n* ``already_running(codeName)`` tells you if this same program is running\n in a different process\n\n* ``get_system_start_time()`` will give you the time when the computer\n was turned on in unixtime\n\n* ``process_exists(pid)`` will tell you if a process with that id is\n running\n\n* ``process_kill(pid)`` will kill the process with that id if exists\n\nInstall\n-------\n\nEither use \n ``pip install runstatus`` \nor download the sources and run\n ``python setup.py install``\n\nNo dependencies are required. Run on python 2.7 or 3.x\n\nDownload\n--------\n\nThe git repository is available at https://github.com/riquito/runstatus\n\nOS supported\n------------\n\nCurrently works on Linux, BSD, Windows, Mac OS\n\nCopyright and License\n---------------------\n\nrunstatus was developed by Riccardo Attilio Galli \nand is licensed under the Apache License (see LICENSE file)\n\nWebsite\n-------\nhttp://www.sideralis.org", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/riquito/runstatus/", "keywords": "process,program,run,uptime", "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "runstatus", "package_url": "https://pypi.org/project/runstatus/", "platform": "Windows,Mac OSX,Linux,BSD", "project_url": "https://pypi.org/project/runstatus/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/riquito/runstatus/" }, "release_url": "https://pypi.org/project/runstatus/1.0/", "requires_dist": null, "requires_python": null, "summary": "a library to detect if a program is already running", "version": "1.0" }, "last_serial": 809599, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "9d0f3ff2ff68dd4eb3d20d9a65438961", "sha256": "e190208683dfa6ef8964e847ead7db3ca203dc17fc09ebfb95544b278d0f082f" }, "downloads": -1, "filename": "runstatus-1.0.tar.gz", "has_sig": false, "md5_digest": "9d0f3ff2ff68dd4eb3d20d9a65438961", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4020, "upload_time": "2011-09-19T01:37:38", "url": "https://files.pythonhosted.org/packages/99/d7/63971cbc365423f4c28b309c00d1b02451a168d6f37ddb8d2a1a5222dbb8/runstatus-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d0f3ff2ff68dd4eb3d20d9a65438961", "sha256": "e190208683dfa6ef8964e847ead7db3ca203dc17fc09ebfb95544b278d0f082f" }, "downloads": -1, "filename": "runstatus-1.0.tar.gz", "has_sig": false, "md5_digest": "9d0f3ff2ff68dd4eb3d20d9a65438961", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4020, "upload_time": "2011-09-19T01:37:38", "url": "https://files.pythonhosted.org/packages/99/d7/63971cbc365423f4c28b309c00d1b02451a168d6f37ddb8d2a1a5222dbb8/runstatus-1.0.tar.gz" } ] }