psprocsdict


Namepsprocsdict JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/psprocsdict
Summarypowershell/wmic to dict
upload_time2024-03-30 03:42:56
maintainerNone
docs_urlNone
authorJohannes Fischer
requires_pythonNone
licenseMIT
keywords powershell wmic
VCS
bugtrack_url
requirements numpy numpyslicesplit numpytypechecker
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# powershell/wmic to dict

## pip install psprocsdict

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


```PY
from psprocsdict import get_dict_from_command

data = get_dict_from_command(
    cmd=f'powershell "Get-Process | Select-Object Name, Id, PriorityClass, HandleCount, WorkingSet, PagedMemorySize, PrivateMemorySize, VirtualMemorySize, PeakVirtualMemorySize, PeakPagedMemorySize, PeakWorkingSet | Format-Table *"',
    convert_dtypes_with_ast=True,
    format_powershell=False,
    cols=9999999,
    lines=1,
    sep=" ",
    percentage=100,
    stripspaces=True,
)


data2 = get_dict_from_command(
    cmd=f'powershell "Get-Process | Select-Object Name, Id, PriorityClass, HandleCount, WorkingSet, PagedMemorySize, PrivateMemorySize, VirtualMemorySize, PeakVirtualMemorySize, PeakPagedMemorySize, PeakWorkingSet | Format-Table *"',
    convert_dtypes_with_ast=False,
    format_powershell=False,
    cols=9999999,
    lines=1,
    sep=" ",
    percentage=100,
    stripspaces=True,
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/psprocsdict",
    "name": "psprocsdict",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "powershell, wmic",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/74/9e/0bc911da14c1fc0ce3c4724192212731eb9ee8509ae33207aaee815d7b52/psprocsdict-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# powershell/wmic to dict\r\n\r\n## pip install psprocsdict\r\n\r\n### Tested against Windows 10 / Python 3.11 / Anaconda\r\n\r\n\r\n```PY\r\nfrom psprocsdict import get_dict_from_command\r\n\r\ndata = get_dict_from_command(\r\n    cmd=f'powershell \"Get-Process | Select-Object Name, Id, PriorityClass, HandleCount, WorkingSet, PagedMemorySize, PrivateMemorySize, VirtualMemorySize, PeakVirtualMemorySize, PeakPagedMemorySize, PeakWorkingSet | Format-Table *\"',\r\n    convert_dtypes_with_ast=True,\r\n    format_powershell=False,\r\n    cols=9999999,\r\n    lines=1,\r\n    sep=\" \",\r\n    percentage=100,\r\n    stripspaces=True,\r\n)\r\n\r\n\r\ndata2 = get_dict_from_command(\r\n    cmd=f'powershell \"Get-Process | Select-Object Name, Id, PriorityClass, HandleCount, WorkingSet, PagedMemorySize, PrivateMemorySize, VirtualMemorySize, PeakVirtualMemorySize, PeakPagedMemorySize, PeakWorkingSet | Format-Table *\"',\r\n    convert_dtypes_with_ast=False,\r\n    format_powershell=False,\r\n    cols=9999999,\r\n    lines=1,\r\n    sep=\" \",\r\n    percentage=100,\r\n    stripspaces=True,\r\n)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "powershell/wmic to dict",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/psprocsdict"
    },
    "split_keywords": [
        "powershell",
        " wmic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d412c382b72f9b30bc6489fdde151e24dc383a1b07daddcaac4618ebf054e6c0",
                "md5": "be86d5caa32059b22522826cefac60e0",
                "sha256": "3aa8ae5e512d00753b12d160a6550e742ae01c059bc08c89118c08b17ac91c05"
            },
            "downloads": -1,
            "filename": "psprocsdict-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "be86d5caa32059b22522826cefac60e0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 21825,
            "upload_time": "2024-03-30T03:42:54",
            "upload_time_iso_8601": "2024-03-30T03:42:54.211247Z",
            "url": "https://files.pythonhosted.org/packages/d4/12/c382b72f9b30bc6489fdde151e24dc383a1b07daddcaac4618ebf054e6c0/psprocsdict-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "749e0bc911da14c1fc0ce3c4724192212731eb9ee8509ae33207aaee815d7b52",
                "md5": "908c3af1dced9fc8034949a09a71fc52",
                "sha256": "9e90a5b7ebe2224c46aafbfd74d7edf71deb952d02a3b15ddb80372582bcb1cf"
            },
            "downloads": -1,
            "filename": "psprocsdict-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "908c3af1dced9fc8034949a09a71fc52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 21661,
            "upload_time": "2024-03-30T03:42:56",
            "upload_time_iso_8601": "2024-03-30T03:42:56.168034Z",
            "url": "https://files.pythonhosted.org/packages/74/9e/0bc911da14c1fc0ce3c4724192212731eb9ee8509ae33207aaee815d7b52/psprocsdict-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-30 03:42:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "psprocsdict",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "numpyslicesplit",
            "specs": []
        },
        {
            "name": "numpytypechecker",
            "specs": []
        }
    ],
    "lcname": "psprocsdict"
}
        
Elapsed time: 0.49226s