pywershell


Namepywershell JSON
Version 0.2.4 PyPI version JSON
download
home_pageNone
SummaryAsync PowerShell wrapper for Python
upload_time2025-07-16 20:32:23
maintainerNone
docs_urlNone
authorgenderlessput
requires_python>=3.8
license# LICENSE MIT License Copyright (c) 2025 Miles Copeland Luce Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- README.md -->
# Pywershell

Async PowerShell session manager for Python.

## Install

```python
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())
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pywershell",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "genderlessput",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/65/93/bf1a9dda0bcd9a68ef2bcdcd9cc2590ea221787eadaa7b7bac9142d5f855/pywershell-0.2.4.tar.gz",
    "platform": null,
    "description": "<!-- README.md -->\r\n# Pywershell\r\n\r\nAsync PowerShell session manager for Python.\r\n\r\n## Install\r\n\r\n```python\r\nimport asyncio\r\nfrom pywershell.pywershell import PywershellLive\r\n\r\nasync def main():\r\n    shell = await PywershellLive(verbose=True)\r\n    # Run a command and await its completion\r\n    result = await shell.run(\"Get-Process | Select-Object -First 5\")\r\n    print(\"Exit code:\", result.code)\r\n    print(\"Output:\", result.str)\r\n    await shell.close()\r\n\r\nasyncio.run(main())\r\n```\r\n",
    "bugtrack_url": null,
    "license": "# LICENSE\r\n        MIT License\r\n        \r\n        Copyright (c) 2025 Miles Copeland Luce\r\n        \r\n        Permission is hereby granted, free of charge, to any person obtaining a copy\r\n        of this software and associated documentation files (the \u201cSoftware\u201d), to deal\r\n        in the Software without restriction, subject to the following conditions:\r\n        \r\n        The above copyright notice and this permission notice shall be included in all\r\n        copies or substantial portions of the Software.\r\n        \r\n        THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND.\r\n        ",
    "summary": "Async PowerShell wrapper for Python",
    "version": "0.2.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7f2bde2f6538a33ff72c0ac5590a4e8edd2fc839383e95b9d6f57ff800388622",
                "md5": "53c07cf3b532166ed58f483876082183",
                "sha256": "b5520d4af2aca1c04e14da170934040828042a58b6cc7a25a1285876282a0113"
            },
            "downloads": -1,
            "filename": "pywershell-0.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "53c07cf3b532166ed58f483876082183",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3852,
            "upload_time": "2025-07-16T20:32:21",
            "upload_time_iso_8601": "2025-07-16T20:32:21.939929Z",
            "url": "https://files.pythonhosted.org/packages/7f/2b/de2f6538a33ff72c0ac5590a4e8edd2fc839383e95b9d6f57ff800388622/pywershell-0.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6593bf1a9dda0bcd9a68ef2bcdcd9cc2590ea221787eadaa7b7bac9142d5f855",
                "md5": "c57b8ba11bad8f8f7f963cf55daf998e",
                "sha256": "4fc9238499744d7888ca14e12b2e62cdbdecaa37e207b636949de6d4d64575aa"
            },
            "downloads": -1,
            "filename": "pywershell-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "c57b8ba11bad8f8f7f963cf55daf998e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3041,
            "upload_time": "2025-07-16T20:32:23",
            "upload_time_iso_8601": "2025-07-16T20:32:23.612694Z",
            "url": "https://files.pythonhosted.org/packages/65/93/bf1a9dda0bcd9a68ef2bcdcd9cc2590ea221787eadaa7b7bac9142d5f855/pywershell-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-16 20:32:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pywershell"
}
        
Elapsed time: 1.90064s