{ "info": { "author": "zencore", "author_email": "dobetter@zencore.cn", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ps2\n===\n\n.. image:: https://travis-ci.org/appstore-zencore/ps2.svg?branch=master\n :target: https://travis-ci.org/appstore-zencore/ps2\n\nAbout\n-----\n\nps tools that can be used in Linux/MacOS/Windows.\n\nInstall\n-------\n\n::\n\n pip install ps2\n\n\nUsage\n-----\n\n::\n\n zencore:scripts zencore$ python3 ps2.py --help\n Usage: ps2.py [OPTIONS] [OUTPUT]\n\n The keywords can be used in output template:\n\n cmdline commands connections cpu_percent cpu_times create_time cwd\n elapsed_time environ exe gids memory_full_info memory_info memory_maps\n memory_percent name nice num_ctx_switches num_fds num_threads open_files\n pid ppid status terminal threads uids username\n\n The default output template is:\n\n \"{pid}\\t{name}\"\n\n Options:\n --help Show this message and exit.\n\nExample 1\n---------\n\n::\n\n zencore:scripts zencore$ python3 ps2.py\n 0\tkernel_task\n 89\tloginwindow\n 282\tcfprefsd\n 283\tdistnoted\n 287\tlsd\n 306\tUserEventAgent\n 311\tCommCenter\n 312\ttrustd\n 313\tsharedfilelistd\n 315\tTerminal\n ...\n\nBy default, ps2 show pid and name.\n\n\nExample 2\n---------\n\n::\n\n zencore:scripts zencore$ python3 ps2.py '{pid}\\t{elapsed_time}\\t{cmdline}'\n 0\t682055.9033548832\t\n 89\t682043.2770848274\t/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console\n 282\t681934.4019351006\t/usr/sbin/cfprefsd agent\n 283\t681934.2526762486\t/usr/sbin/distnoted agent\n 287\t681933.4957187176\t/usr/libexec/lsd\n 306\t681855.2815728188\t/usr/libexec/UserEventAgent '(Aqua)'\n 311\t681855.1821689606\t/System/Library/Frameworks/CoreTelephony.framework/Support/CommCenter -L\n 312\t681855.1382620335\t/usr/libexec/trustd --agent\n 313\t681855.0924699306\t/System/Library/CoreServices/sharedfilelistd\n 315\t681854.9572939873\t/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_69649\n\nYou can customize the output template, the PROGRAM provides many KEYWORDS for you to use.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/appstore-zencore/ps2", "keywords": "ps2", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ps2", "package_url": "https://pypi.org/project/ps2/", "platform": "", "project_url": "https://pypi.org/project/ps2/", "project_urls": { "Homepage": "https://github.com/appstore-zencore/ps2" }, "release_url": "https://pypi.org/project/ps2/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "ps tool that can be used in Linux/MacOS/Windows.", "version": "0.1.3" }, "last_serial": 3775245, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "314cd4fdaa6852e85c26747b8e6af3d2", "sha256": "ae21b221fd2a70201e58f94a93e3ba1e60cee8d6a4e839c4273bb0904c991e51" }, "downloads": -1, "filename": "ps2-0.1.0.tar.gz", "has_sig": false, "md5_digest": "314cd4fdaa6852e85c26747b8e6af3d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2844, "upload_time": "2018-04-17T00:54:27", "url": "https://files.pythonhosted.org/packages/ff/18/8b3c9289d689ca5b54451c07c5dbcf3a7b4c466b667ce9265d3a24871c27/ps2-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "543935254ae9ff6d044c4463e066b835", "sha256": "af912732f7748e716f2dadcc268a3810fe04d7047d4233e525b34a563dca3653" }, "downloads": -1, "filename": "ps2-0.1.1.tar.gz", "has_sig": false, "md5_digest": "543935254ae9ff6d044c4463e066b835", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2840, "upload_time": "2018-04-17T01:02:38", "url": "https://files.pythonhosted.org/packages/01/ac/15eb420bf4aef986781c312546d3949449daabf7b7206c30c1e1661416c3/ps2-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d72a496df445632ed43ae1c893b20353", "sha256": "431aa9b1089860033d29656b85d6a426954eff2a52a091315a57833fe1813bd9" }, "downloads": -1, "filename": "ps2-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d72a496df445632ed43ae1c893b20353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3524, "upload_time": "2018-04-17T16:07:46", "url": "https://files.pythonhosted.org/packages/0e/a6/587add66812ed4ab462a9a322f7a863856eb5781151db758a63ee0836b7c/ps2-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "2a065aba636a521f96efd64a28ef81dc", "sha256": "de94a4def5a403bb9ed41bad70f16336d80471e2340f85a6fb7274ccbe60d0f5" }, "downloads": -1, "filename": "ps2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2a065aba636a521f96efd64a28ef81dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3542, "upload_time": "2018-04-18T00:56:04", "url": "https://files.pythonhosted.org/packages/e5/5b/1db5978344d36d6cff7b9f45af854001b0a94fa586d1f4d30da0cd6c4de4/ps2-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a065aba636a521f96efd64a28ef81dc", "sha256": "de94a4def5a403bb9ed41bad70f16336d80471e2340f85a6fb7274ccbe60d0f5" }, "downloads": -1, "filename": "ps2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2a065aba636a521f96efd64a28ef81dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3542, "upload_time": "2018-04-18T00:56:04", "url": "https://files.pythonhosted.org/packages/e5/5b/1db5978344d36d6cff7b9f45af854001b0a94fa586d1f4d30da0cd6c4de4/ps2-0.1.3.tar.gz" } ] }