Skip to main content

Async PowerShell wrapper for Python

Project description

Pywershell

Async PowerShell session manager for Python.

Install

import asyncio
from pywershell.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.tar.gz (3.0 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-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywershell-0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pywershell-0.3.tar.gz
Algorithm Hash digest
SHA256 58259faa6d438dc0443d1798e1714b3114244b25f5bc9f010345ae78db4f1580
MD5 db3754daaf2d03c8e0630e39bb9044d1
BLAKE2b-256 0b2fdc60910e8795dde1e1c295f4e397d33bfc25ca81649ca2e1645c5622d699

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywershell-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pywershell-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf43e22ebd626c8fca690bd51abc1e226cba325d57d128bef96cd4cb6bbad29
MD5 b93429ee23a8584daace86e02a0eae66
BLAKE2b-256 8112318ace69a421412b48274c419bc8f8dcf2f47cfa6b33feeae8ac283d884c

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