propar


Namepropar JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryRun terminal commands easily!
upload_time2024-05-25 09:57:25
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/bd/75/83ad5bae01cf0c1305c5c9b6db701f9ae116359f67fe799ad5798ed6495e/propar-1.0.2.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.2",
    "project_urls": null,
    "split_keywords": [
        "python",
        " terminal",
        " bash",
        " command",
        " commands",
        " terminal command runner",
        " execute command",
        " run commands"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "867d3fa0c71f5032fb1f910f7106e5b1f2ec0b56348b4e7a928dd572b094742f",
                "md5": "633d416aba5c0f1d202015009ba29655",
                "sha256": "eb6c9ac1905556806e133f01833114a00323831e19f7bb977f55d8d5de20cc02"
            },
            "downloads": -1,
            "filename": "propar-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "633d416aba5c0f1d202015009ba29655",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8870,
            "upload_time": "2024-05-25T09:57:23",
            "upload_time_iso_8601": "2024-05-25T09:57:23.355836Z",
            "url": "https://files.pythonhosted.org/packages/86/7d/3fa0c71f5032fb1f910f7106e5b1f2ec0b56348b4e7a928dd572b094742f/propar-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd7583ad5bae01cf0c1305c5c9b6db701f9ae116359f67fe799ad5798ed6495e",
                "md5": "5209595ae6e3ff51dab75bb9c340d912",
                "sha256": "d0022b77dcae0557325b0837a04e7b9736a42806cfebecaf16900b0ef9c5aad4"
            },
            "downloads": -1,
            "filename": "propar-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5209595ae6e3ff51dab75bb9c340d912",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8870,
            "upload_time": "2024-05-25T09:57:25",
            "upload_time_iso_8601": "2024-05-25T09:57:25.413103Z",
            "url": "https://files.pythonhosted.org/packages/bd/75/83ad5bae01cf0c1305c5c9b6db701f9ae116359f67fe799ad5798ed6495e/propar-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-25 09:57:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "propar"
}
        
Elapsed time: 0.24526s