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.2.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.2.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywershell-0.2.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.2.3.tar.gz
Algorithm Hash digest
SHA256 c12704c622aeb2db210d299c93e258ce3a916118b86b81a0d29cd08a0358bc27
MD5 3eed26e2daf604b64d22446f9ddb8015
BLAKE2b-256 1e49d1945988a83702c88c4df052c56da6c5d95d4d0ee6cbf156f13a5f70f8ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywershell-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 89c2274ad1e5a8b9ee1de917c6c4fbf8f060aecf5c04a08b2c03792c31323e00
MD5 5eedabc61dfffcc2749b0a428d91d3ff
BLAKE2b-256 3e790a84a41dbf6682de65093feded2d4305016478b72eda6dc029884459aaad

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