ensurepath


Nameensurepath JSON
Version 0.2.6 PyPI version JSON
download
home_pageNone
SummaryEnsure python, pip and with pip installed binarys (scripts for win) are in your PATH variable.
upload_time2024-05-24 19:13:01
maintainerKonxell
docs_urlNone
authorKonxell
requires_python>=3.7
licenseUnlicense (Public Domain) ============================ This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to &lt;<http://unlicense.org/>&gt;
keywords path user path windows linux msstore ms store terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ensurepath

Does exactly one thing:

- ensure that python, pip and with pip installed binarys are in your path.



## USAGE

If `python` command is available:
```bash
$ python -m pip install ensurepath
...
$ python -m ensurepath
...
```
Otherwise:
```bash
$ [path to python] -m pip install ensurepath
...
$ [path to python] -m ensurepath
...
```

## Why

The need occured for me when we started using pipx in a python class just to use `pipx ensurepath`.
That is because the micrsoft store (msstore) install of python does add `python` and `pip` to the path, but not the `scripts` folder where with pip installed shell commands are located.
I tried to also make this script add pip and python to the path if they are not in yet, but have not tested this further.

## msstore

If you're installing python from the msstore and also want that the commands that are installed with the installed packages to just work on the comandline, you're exactly right here!

# Issues

If you encouter any error feel free to create an issue and I will try to help, when I have the time. But this is not a python install support service ;-)

This how not been tested thoroughly use at your own risk!

# Thanks
This script only uses the [`userpath`](https://pypi.org/project/userpath/) module from [ofek](https://github.com/ofek), without you this wouldn't be possible! Thanks for your great work on `userpath`!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ensurepath",
    "maintainer": "Konxell",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "path, user path, windows, linux, msstore, ms store, terminal",
    "author": "Konxell",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/cd/de/0dd8640dc584fae2e279e1c8325b54c6f47daaa1a2f99a64be699aaf3fb6/ensurepath-0.2.6.tar.gz",
    "platform": null,
    "description": "# ensurepath\n\nDoes exactly one thing:\n\n- ensure that python, pip and with pip installed binarys are in your path.\n\n\n\n## USAGE\n\nIf `python` command is available:\n```bash\n$ python -m pip install ensurepath\n...\n$ python -m ensurepath\n...\n```\nOtherwise:\n```bash\n$ [path to python] -m pip install ensurepath\n...\n$ [path to python] -m ensurepath\n...\n```\n\n## Why\n\nThe need occured for me when we started using pipx in a python class just to use `pipx ensurepath`.\nThat is because the micrsoft store (msstore) install of python does add `python` and `pip` to the path, but not the `scripts` folder where with pip installed shell commands are located.\nI tried to also make this script add pip and python to the path if they are not in yet, but have not tested this further.\n\n## msstore\n\nIf you're installing python from the msstore and also want that the commands that are installed with the installed packages to just work on the comandline, you're exactly right here!\n\n# Issues\n\nIf you encouter any error feel free to create an issue and I will try to help, when I have the time. But this is not a python install support service ;-)\n\nThis how not been tested thoroughly use at your own risk!\n\n# Thanks\nThis script only uses the [`userpath`](https://pypi.org/project/userpath/) module from [ofek](https://github.com/ofek), without you this wouldn't be possible! Thanks for your great work on `userpath`!\n",
    "bugtrack_url": null,
    "license": "Unlicense (Public Domain) ============================  This is free and unencumbered software released into the public domain.  Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.  In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  For more information, please refer to &lt;<http://unlicense.org/>&gt; ",
    "summary": "Ensure python, pip and with pip installed binarys (scripts for win) are in your PATH variable.",
    "version": "0.2.6",
    "project_urls": {
        "Issues": "https://github.com/knoxell/ensurepath/issues",
        "Repository": "https://github.com/knoxell/ensurepath"
    },
    "split_keywords": [
        "path",
        " user path",
        " windows",
        " linux",
        " msstore",
        " ms store",
        " terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "15030b5c43f267f7bc0e06a5750fc6ea5380218312c13c829ce9aa4884fb44d7",
                "md5": "f58e9549c5357d9c17559a31db9efe18",
                "sha256": "b27579c2cfaed72532905ca84e834f5491ee63da8a11b31b5988a908b8ff098a"
            },
            "downloads": -1,
            "filename": "ensurepath-0.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f58e9549c5357d9c17559a31db9efe18",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4436,
            "upload_time": "2024-05-24T19:12:59",
            "upload_time_iso_8601": "2024-05-24T19:12:59.546292Z",
            "url": "https://files.pythonhosted.org/packages/15/03/0b5c43f267f7bc0e06a5750fc6ea5380218312c13c829ce9aa4884fb44d7/ensurepath-0.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdde0dd8640dc584fae2e279e1c8325b54c6f47daaa1a2f99a64be699aaf3fb6",
                "md5": "4924ac708226a3be12322061a782f993",
                "sha256": "6c4405842a864b8721ff975546c493ce8fb42d49abf5aff88bcc273f2f9810e7"
            },
            "downloads": -1,
            "filename": "ensurepath-0.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "4924ac708226a3be12322061a782f993",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3693,
            "upload_time": "2024-05-24T19:13:01",
            "upload_time_iso_8601": "2024-05-24T19:13:01.075468Z",
            "url": "https://files.pythonhosted.org/packages/cd/de/0dd8640dc584fae2e279e1c8325b54c6f47daaa1a2f99a64be699aaf3fb6/ensurepath-0.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-24 19:13:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "knoxell",
    "github_project": "ensurepath",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ensurepath"
}
        
Elapsed time: 0.24297s