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.3.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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58259faa6d438dc0443d1798e1714b3114244b25f5bc9f010345ae78db4f1580
|
|
| MD5 |
db3754daaf2d03c8e0630e39bb9044d1
|
|
| BLAKE2b-256 |
0b2fdc60910e8795dde1e1c295f4e397d33bfc25ca81649ca2e1645c5622d699
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf43e22ebd626c8fca690bd51abc1e226cba325d57d128bef96cd4cb6bbad29
|
|
| MD5 |
b93429ee23a8584daace86e02a0eae66
|
|
| BLAKE2b-256 |
8112318ace69a421412b48274c419bc8f8dcf2f47cfa6b33feeae8ac283d884c
|