subprocess-mem-only


Namesubprocess-mem-only JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/subprocess_mem_only
SummaryPass a variable as a SpooledTemporaryFile directly to subprocess.
upload_time2022-12-28 00:35:20
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords subprocess spooledtemporaryfile
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Pass a variable as a SpooledTemporaryFile directly to subprocess.

```python
$pip install subprocess-mem-only
from subprocess_mem_only import subprocess_with_spooledtempfile

var_as_binary= b'Hi there, how are you?\nYou are my best friend'

resi = subprocess_with_spooledtempfile(
    command=["grep", r"\bmy\b"], content=var_as_binary
)
print(resi)
CompletedProcess(args=['grep', '\\bmy\\b'], returncode=0, stdout=b'You are my best friend\n', stderr=b'')

```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/subprocess_mem_only",
    "name": "subprocess-mem-only",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "subprocess,SpooledTemporaryFile",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2b/0e/826acc546f5950a1d26326c77fba34535b3bc1877b174489b541b8318c20/subprocess_mem_only-0.10.tar.gz",
    "platform": null,
    "description": "\n# Pass a variable as a SpooledTemporaryFile directly to subprocess.\n\n```python\n$pip install subprocess-mem-only\nfrom subprocess_mem_only import subprocess_with_spooledtempfile\n\nvar_as_binary= b'Hi there, how are you?\\nYou are my best friend'\n\nresi = subprocess_with_spooledtempfile(\n    command=[\"grep\", r\"\\bmy\\b\"], content=var_as_binary\n)\nprint(resi)\nCompletedProcess(args=['grep', '\\\\bmy\\\\b'], returncode=0, stdout=b'You are my best friend\\n', stderr=b'')\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pass a variable as a SpooledTemporaryFile directly to subprocess.",
    "version": "0.10",
    "split_keywords": [
        "subprocess",
        "spooledtemporaryfile"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4f637cefa58e5711661671d7f82c2001",
                "sha256": "0a60e25e60bf992f6ae5733a30d20984035158ff7a32d3d9551a4409ec0fa81c"
            },
            "downloads": -1,
            "filename": "subprocess_mem_only-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4f637cefa58e5711661671d7f82c2001",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4624,
            "upload_time": "2022-12-28T00:35:19",
            "upload_time_iso_8601": "2022-12-28T00:35:19.101946Z",
            "url": "https://files.pythonhosted.org/packages/0b/48/7c08bbe3784a3b2ac75a1c039d6f7b240b26cb895301d6d6ddc88048fc5c/subprocess_mem_only-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "4c67bfe23f9d46a135321a603848f6b4",
                "sha256": "14ff43884931c2f35f1bcc275639ab0b2275f5575add42a52e3325ada57afef2"
            },
            "downloads": -1,
            "filename": "subprocess_mem_only-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "4c67bfe23f9d46a135321a603848f6b4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3195,
            "upload_time": "2022-12-28T00:35:20",
            "upload_time_iso_8601": "2022-12-28T00:35:20.560022Z",
            "url": "https://files.pythonhosted.org/packages/2b/0e/826acc546f5950a1d26326c77fba34535b3bc1877b174489b541b8318c20/subprocess_mem_only-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-28 00:35:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "subprocess_mem_only",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "subprocess-mem-only"
}
        
Elapsed time: 0.11323s