subprocesshidden


Namesubprocesshidden JSON
Version 0.11 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/subprocesshidden
SummaryExecutes subprocesses without console (Windows), reads stdout/stderr
upload_time2023-09-17 03:52:53
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords subprocess hidden
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Executes subprocesses without console (Windows), reads stdout/stderr

### pip install subprocesshidden

```python

from subprocesshidden import Popen
import os

os.chdir("c:\\windows")
p1 = Popen("ls -la", timeout=1, shell=True)

p2 = Popen("dir /s", timeout=3, shell=True) # tasks are killed with taskkill

p3 = Popen("dir /xsd")


print(p1.stdout_lines)
print(p2.stdout_lines)
print(p3.stdout_lines)
print(p3.stderr_lines)
print(p2.stderr_lines)
print(p1.stderr_lines)

print(p1.stdout)
print(p2.stdout)
print(p3.stdout)
print(p3.stderr)
print(p2.stderr)
print(p1.stderr)


```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/subprocesshidden",
    "name": "subprocesshidden",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "subprocess,hidden",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/eb/c4/7f60fcfc4009824c238784d5bde8e6fa98968766e142a762c22b6b9ad7d2/subprocesshidden-0.11.tar.gz",
    "platform": null,
    "description": "\r\n# Executes subprocesses without console (Windows), reads stdout/stderr\r\n\r\n### pip install subprocesshidden\r\n\r\n```python\r\n\r\nfrom subprocesshidden import Popen\r\nimport os\r\n\r\nos.chdir(\"c:\\\\windows\")\r\np1 = Popen(\"ls -la\", timeout=1, shell=True)\r\n\r\np2 = Popen(\"dir /s\", timeout=3, shell=True) # tasks are killed with taskkill\r\n\r\np3 = Popen(\"dir /xsd\")\r\n\r\n\r\nprint(p1.stdout_lines)\r\nprint(p2.stdout_lines)\r\nprint(p3.stdout_lines)\r\nprint(p3.stderr_lines)\r\nprint(p2.stderr_lines)\r\nprint(p1.stderr_lines)\r\n\r\nprint(p1.stdout)\r\nprint(p2.stdout)\r\nprint(p3.stdout)\r\nprint(p3.stderr)\r\nprint(p2.stderr)\r\nprint(p1.stderr)\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Executes subprocesses without console (Windows), reads stdout/stderr",
    "version": "0.11",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/subprocesshidden"
    },
    "split_keywords": [
        "subprocess",
        "hidden"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "886edbe22bce3d3b6b9227f68f2678d2fe45baac62716fd7e8b47330f56e770e",
                "md5": "0851f68a591018970255e8d86aa8fc0d",
                "sha256": "510cf551ee5d5a948f4e9171243f9dc999d6c3f9e992e97e88bb9229460c05b8"
            },
            "downloads": -1,
            "filename": "subprocesshidden-0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0851f68a591018970255e8d86aa8fc0d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6200,
            "upload_time": "2023-09-17T03:52:51",
            "upload_time_iso_8601": "2023-09-17T03:52:51.865452Z",
            "url": "https://files.pythonhosted.org/packages/88/6e/dbe22bce3d3b6b9227f68f2678d2fe45baac62716fd7e8b47330f56e770e/subprocesshidden-0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebc47f60fcfc4009824c238784d5bde8e6fa98968766e142a762c22b6b9ad7d2",
                "md5": "74e7cfaa3d4b2530b68d0b2887a22aa7",
                "sha256": "fdc895e8ceaa6067399652692a1d51279da8f44de84e879432645d4bd64dbd8b"
            },
            "downloads": -1,
            "filename": "subprocesshidden-0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "74e7cfaa3d4b2530b68d0b2887a22aa7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4922,
            "upload_time": "2023-09-17T03:52:53",
            "upload_time_iso_8601": "2023-09-17T03:52:53.627466Z",
            "url": "https://files.pythonhosted.org/packages/eb/c4/7f60fcfc4009824c238784d5bde8e6fa98968766e142a762c22b6b9ad7d2/subprocesshidden-0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-17 03:52:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "subprocesshidden",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "subprocesshidden"
}
        
Elapsed time: 0.11505s