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.0.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.0.tar.gz.
File metadata
- Download URL: pywershell-0.2.0.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 |
318b5bb76d2b6529694ac0d6c603047f9af13534308be5e73937de66a132dce2
|
|
| MD5 |
5fbfda879d049892cebe2a8ac60c2b75
|
|
| BLAKE2b-256 |
9cca2674165bdcd94d1ecbde6d38f8f19c7b05991e1c95ae1a30851070399c38
|
File details
Details for the file pywershell-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pywershell-0.2.0-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 |
69f752af7969cc26ace1651a1df54f3bf9a323fbe12b351174dc7a1921805951
|
|
| MD5 |
9757645d3dfbd7493ced4ff9c81322e2
|
|
| BLAKE2b-256 |
1d15102b310ece5d5f68b5cd46528e3342473823b62cd039b67707108a2241db
|