propar


Namepropar JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryRun terminal commands easily!
upload_time2024-08-30 09:35:15
maintainerNone
docs_urlNone
authorSchkimansky
requires_pythonNone
licenseNone
keywords python terminal bash command commands terminal command runner execute command run commands
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Donations
It takes me a long time to make these libraries. If you would like to support my work, Then you can follow my patreon :)

https://www.patreon.com/Schkimansky

# Library
This is a easy to use python library that allows you to run terminal commands easily. 

```python
import propar
result = propar.run_command('echo Hello, MG?')
print(result)
```

# Installation
```bash
pip install propar
```

# Documentation
There are only 2 functions:
```python
run_command(command: str, timeout=None, get_both_output_and_errors=False, get_return_code=False)
run_commands(commands_array: list[str], timeout=None, get_both_output_and_errors=False, get_return_code=False)
```

Run_command takes a command as a string and then runs it. The return value of the function depends on the parameters.
For example, In this case the return value will be the text that you get when you run the command manually in the terminal.
```python
result = run_command("mkdir NewFolder") # If this command gets a error, it will return the error. However if theres no error, Then it will just return the text you get when you execute that command manually.
```

However, you can put a timeout parameter to stop the function once it takes too long (defined in seconds)

Also, theres the run_commands function.
Its the same as run_command but this time it runs multiple commands.

Thats pretty much all, This can be used as a alternative to CMake. And is more powerfull, easier, extensible, simpler, reliable

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "propar",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, terminal, bash, command, commands, terminal command runner, execute command, run commands",
    "author": "Schkimansky",
    "author_email": "<ahmadchawla1432@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/97/b1/31bcef85f9a76d3bae9998a4f24a66db6f5ce1ff85f984a923e2272889e5/propar-1.0.3.tar.gz",
    "platform": null,
    "description": "\n# Donations\nIt takes me a long time to make these libraries. If you would like to support my work, Then you can follow my patreon :)\n\nhttps://www.patreon.com/Schkimansky\n\n# Library\nThis is a easy to use python library that allows you to run terminal commands easily. \n\n```python\nimport propar\nresult = propar.run_command('echo Hello, MG?')\nprint(result)\n```\n\n# Installation\n```bash\npip install propar\n```\n\n# Documentation\nThere are only 2 functions:\n```python\nrun_command(command: str, timeout=None, get_both_output_and_errors=False, get_return_code=False)\nrun_commands(commands_array: list[str], timeout=None, get_both_output_and_errors=False, get_return_code=False)\n```\n\nRun_command takes a command as a string and then runs it. The return value of the function depends on the parameters.\nFor example, In this case the return value will be the text that you get when you run the command manually in the terminal.\n```python\nresult = run_command(\"mkdir NewFolder\") # If this command gets a error, it will return the error. However if theres no error, Then it will just return the text you get when you execute that command manually.\n```\n\nHowever, you can put a timeout parameter to stop the function once it takes too long (defined in seconds)\n\nAlso, theres the run_commands function.\nIts the same as run_command but this time it runs multiple commands.\n\nThats pretty much all, This can be used as a alternative to CMake. And is more powerfull, easier, extensible, simpler, reliable\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Run terminal commands easily!",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [
        "python",
        " terminal",
        " bash",
        " command",
        " commands",
        " terminal command runner",
        " execute command",
        " run commands"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1dbe868c69c88f215f04a4b011caf33bf0e7d582d739579a3ec458c3945dfb07",
                "md5": "8b35afbadb49f673e3818cfa3b8fa4a1",
                "sha256": "f68119e586624d503674d77e6b0f4f2d87dee6c0c7506ce7d89ba990a59ead8f"
            },
            "downloads": -1,
            "filename": "propar-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b35afbadb49f673e3818cfa3b8fa4a1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9809,
            "upload_time": "2024-08-30T09:35:13",
            "upload_time_iso_8601": "2024-08-30T09:35:13.319741Z",
            "url": "https://files.pythonhosted.org/packages/1d/be/868c69c88f215f04a4b011caf33bf0e7d582d739579a3ec458c3945dfb07/propar-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97b131bcef85f9a76d3bae9998a4f24a66db6f5ce1ff85f984a923e2272889e5",
                "md5": "70838b1a43885a232666c4ae4c3b2532",
                "sha256": "ac797428d116cc0bc69713604b4f33888ae8bee869b8215ad2d6a20a7aa4be04"
            },
            "downloads": -1,
            "filename": "propar-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "70838b1a43885a232666c4ae4c3b2532",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9546,
            "upload_time": "2024-08-30T09:35:15",
            "upload_time_iso_8601": "2024-08-30T09:35:15.351966Z",
            "url": "https://files.pythonhosted.org/packages/97/b1/31bcef85f9a76d3bae9998a4f24a66db6f5ce1ff85f984a923e2272889e5/propar-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-30 09:35:15",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "propar"
}
        
Elapsed time: 0.34032s