Skip to main content

No project description provided

Project description

Pywershell

Async PowerShell session manager for Python.

Install

import asyncio
from pywershell import PywershellLive


async def main():
    shell = await PywershellLive(verbose=True)
    # Run a command and await its completion
    result = await shell.run("Get-Process | Select-Object -First 5")
    print("Exit code:", result.code)
    print("Output:", result.str)
    await shell.close()


asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywershell-0.3.11.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywershell-0.3.11-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pywershell-0.3.11.tar.gz.

File metadata

  • Download URL: pywershell-0.3.11.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Windows/11

File hashes

Hashes for pywershell-0.3.11.tar.gz
Algorithm Hash digest
SHA256 65eefe040621d311efb32887377b1f5b42a0d9ff2acc0315a2149e49ee5f15b3
MD5 ad6d862367fc5c398cadc7f72684ebd0
BLAKE2b-256 8e17eee2474b793b261cab05e8aea3e6f83bea9946d15bbdb03376ffc40eeb41

See more details on using hashes here.

File details

Details for the file pywershell-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: pywershell-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Windows/11

File hashes

Hashes for pywershell-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5d1dd9a424fa724534d2ae908d9523a89ed88f5f9958285e1f4eae66a91e17b7
MD5 0856c4d4f0a13c55dedb9de66e2cb79e
BLAKE2b-256 446fc6ab64a42c8dc407bc2805fa272966609479b23984626ecde4a95048b83e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page