Skip to main content

powershell/wmic to dict

pip install psprocsdict

Tested against Windows 10 / Python 3.11 / Anaconda

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,
)

Metadata

Release files for psprocsdict 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psprocsdict 0.10
File Size Uploaded Provenance Actions
psprocsdict-0.10.tar.gz 21.7 kB Without provenance Details for psprocsdict-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psprocsdict 0.10
File Interpreter ABI Platform Actions
psprocsdict-0.10-py3-none-any.whl Python 3 none any Details for psprocsdict-0.10-py3-none-any.whl

Total release size: 43.5 kB

Release files / psprocsdict-0.10.tar.gz

Download URL psprocsdict-0.10.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9e90a5b7ebe2224c46aafbfd74d7edf71deb952d02a3b15ddb80372582bcb1cf
BLAKE2b-256 checksum
How to use checksums
749e0bc911da14c1fc0ce3c4724192212731eb9ee8509ae33207aaee815d7b52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / psprocsdict-0.10-py3-none-any.whl

Download URL psprocsdict-0.10-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3aa8ae5e512d00753b12d160a6550e742ae01c059bc08c89118c08b17ac91c05
BLAKE2b-256 checksum
How to use checksums
d412c382b72f9b30bc6489fdde151e24dc383a1b07daddcaac4618ebf054e6c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for psprocsdict 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page