getproclist


Namegetproclist JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/getproclist
SummaryRetrieves the list of processes using the 'wmic' command and return the data as a pandas DataFrame
upload_time2023-05-16 02:27:08
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords wmic process pid
VCS
bugtrack_url
requirements a_pandas_ex_less_memory_more_speed flatten_everything pandas subprocesskiller
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Retrieves the list of processes using the 'wmic' command and return the data as a pandas DataFrame

## pip install getproclist

### Tested against Windows 10 / Python 3.10 / Anaconda

## Python

```python
from getproclist import get_proc_list
df=get_proc_list(interval=0)
print(df)

    Retrieve the list of processes using the 'wmic' command and return the data as a pandas DataFrame.

    Args:
        interval (int): The interval in seconds at which to retrieve the process list. Defaults to 5.
            It has to be stopped by pressing ctrl+c
            If interval is less than or equal to 0, the process list is captured only once.

    Returns:
        pd.DataFrame: A DataFrame containing information about the processes.

    Raises:
        None

    Example:
        >>> df = get_proc_list(interval=10) # press ctrl+c
        >>> print(df.head())
               Name  ProcessId  CommandLine  ...
            0  System Idle Process  0           None
            1  System               4           None
            2  smss.exe             248         \SystemRoot\System32\smss.exe
            3  csrss.exe            424         \??\C:\WINDOWS\system32\csrss.exe
            4  wininit.exe          496         \??\C:\WINDOWS\system32\wininit.exe
        ...  
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/getproclist",
    "name": "getproclist",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wmic,process,pid",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b0/43/68394468bd7d1656a1df077247f667c3a92b2182aaaba8940fdf80a891da/getproclist-0.10.tar.gz",
    "platform": null,
    "description": "# Retrieves the list of processes using the 'wmic' command and return the data as a pandas DataFrame\r\n\r\n## pip install getproclist\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda\r\n\r\n## Python\r\n\r\n```python\r\nfrom getproclist import get_proc_list\r\ndf=get_proc_list(interval=0)\r\nprint(df)\r\n\r\n    Retrieve the list of processes using the 'wmic' command and return the data as a pandas DataFrame.\r\n\r\n    Args:\r\n        interval (int): The interval in seconds at which to retrieve the process list. Defaults to 5.\r\n            It has to be stopped by pressing ctrl+c\r\n            If interval is less than or equal to 0, the process list is captured only once.\r\n\r\n    Returns:\r\n        pd.DataFrame: A DataFrame containing information about the processes.\r\n\r\n    Raises:\r\n        None\r\n\r\n    Example:\r\n        >>> df = get_proc_list(interval=10) # press ctrl+c\r\n        >>> print(df.head())\r\n               Name  ProcessId  CommandLine  ...\r\n            0  System Idle Process  0           None\r\n            1  System               4           None\r\n            2  smss.exe             248         \\SystemRoot\\System32\\smss.exe\r\n            3  csrss.exe            424         \\??\\C:\\WINDOWS\\system32\\csrss.exe\r\n            4  wininit.exe          496         \\??\\C:\\WINDOWS\\system32\\wininit.exe\r\n        ...  \r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Retrieves the list of processes using the 'wmic' command and return the data as a pandas DataFrame",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/getproclist"
    },
    "split_keywords": [
        "wmic",
        "process",
        "pid"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6adb7ff1f52aafcd85917a67350871512e0f59778c10a8c8643fd4ee69529b48",
                "md5": "dc6d8fee2d097e8f69046e146a8d8b5a",
                "sha256": "5ff50031e63f36f6d623a38ea2e846e4c11cfe237eaa11a07531c2a0bfa33164"
            },
            "downloads": -1,
            "filename": "getproclist-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc6d8fee2d097e8f69046e146a8d8b5a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6600,
            "upload_time": "2023-05-16T02:27:06",
            "upload_time_iso_8601": "2023-05-16T02:27:06.260855Z",
            "url": "https://files.pythonhosted.org/packages/6a/db/7ff1f52aafcd85917a67350871512e0f59778c10a8c8643fd4ee69529b48/getproclist-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b04368394468bd7d1656a1df077247f667c3a92b2182aaaba8940fdf80a891da",
                "md5": "e0e74c6de25c7ce1fa81618b5db2d407",
                "sha256": "cbe8ee8e696854438f7dce87546f4abaae1fec781cc684f587da998d43250d8a"
            },
            "downloads": -1,
            "filename": "getproclist-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "e0e74c6de25c7ce1fa81618b5db2d407",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4705,
            "upload_time": "2023-05-16T02:27:08",
            "upload_time_iso_8601": "2023-05-16T02:27:08.461637Z",
            "url": "https://files.pythonhosted.org/packages/b0/43/68394468bd7d1656a1df077247f667c3a92b2182aaaba8940fdf80a891da/getproclist-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-16 02:27:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "getproclist",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "a_pandas_ex_less_memory_more_speed",
            "specs": []
        },
        {
            "name": "flatten_everything",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": []
        },
        {
            "name": "subprocesskiller",
            "specs": []
        }
    ],
    "lcname": "getproclist"
}
        
Elapsed time: 0.45389s