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.1.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.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywershell-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 881ae4b920d637bf64e084612cee2f2b6972ee153fdd9f05c72aecd120fb36b7
MD5 394407b027347c502db83efb3410eb3f
BLAKE2b-256 3d5f87705988b0e334dfe85edb0e29ee91e1984b078a307ec2c4b14f0ebb6eed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywershell-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ad8ab87007ec8aac04438d28bf526f93390fdef27fd0bc6a217ade2ee2580d
MD5 1a273f9d8d9eb8642d46c93680c45d77
BLAKE2b-256 c7f871c7e7669228d00a32b4240f8af6fe9190a77c9c8e44c3c731e62b7cd768

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