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.1.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.1.tar.gz.
File metadata
- Download URL: pywershell-0.2.1.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 |
cccc2345ea07317b0102bd937797e005a8df88032af82b1d9cd0a0c1d68a1946
|
|
| MD5 |
a793ab8bb5cf202485ba386c991e7535
|
|
| BLAKE2b-256 |
7ea635f314e55d4f23a252e6a700ca3d9fd73d1f9b88f3f22200b86119f8b455
|
File details
Details for the file pywershell-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pywershell-0.2.1-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 |
daac2e2a740d8127fa2af6de443f4798fb0bf087935dcbd33015c7cfe828caf3
|
|
| MD5 |
8c07b3534518fc6990f95898905e1c6a
|
|
| BLAKE2b-256 |
f0a30a48bc485393c98a4721c29ef8a40470f4ba59f4509295ff927d8bcce66e
|