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.1.0.tar.gz (9.5 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.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywershell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a729e5eea1e6dec0b961803983d94fdc946cc8489a4bc93195624f1dac22e02
MD5 03e7566bed27ac8c03f8ff86000b42f8
BLAKE2b-256 c1ee86d192c5ccfebb90d24b26633595cdffb8b381172543d76ba7cf8e600dc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywershell-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c3b6baee0e5bfe7e5aa33f10741ebb3bea7fcfbc9aa646d24fb635d40770585
MD5 673d8af92bfef818d1cb5058bdc61705
BLAKE2b-256 0ed0d2810c8c4e80d6edf387c8fa01a824042d1046f5f7e185bdef3103e05a98

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