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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywershell-0.2.2.tar.gz.
File metadata
- Download URL: pywershell-0.2.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
184b573b67754b9e76888527922c31f374adc96ff115629caf284bb294fe19db
|
|
| MD5 |
8ef6ea4a35911dd3e08a94d661dbfd41
|
|
| BLAKE2b-256 |
19405a136925d0eb623326e60b090080af28c58daea0c9dc40441f16ada82248
|
File details
Details for the file pywershell-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pywershell-0.2.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
393ec0e9d2b22d656b71d9815f8b634b1bc69bbfa388ef4b3690715234cfbe58
|
|
| MD5 |
9bb0494198e07b0b5cdc67f61f1d9bda
|
|
| BLAKE2b-256 |
97209d8374ef7b9964357882d52e0778c66775a5b3fb3ed5999d1686b48cebbf
|