Skip to main content

Cross-platform tool for adding locations to the user PATH

Project description

userpath

CI/CD CI - Test CD - Build
Package PyPI - Version PyPI - Python Version
Meta License - MIT GitHub Sponsors

This is a tool for modifying a user's PATH.

Table of Contents

Installation

pip install userpath

CLI

$ userpath -h
Usage: userpath [OPTIONS] COMMAND [ARGS]...

Options:
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Commands:
  append   Appends to the user PATH
  prepend  Prepends to the user PATH
  verify   Checks if locations are in the user PATH

API

>>> import userpath
>>> location = r'C:\Users\Ofek\Desktop\test'
>>>
>>> userpath.in_current_path(location)
False
>>> userpath.in_new_path(location)
False
>>> userpath.append(location)
True
>>> userpath.in_new_path(location)
True
>>> userpath.need_shell_restart(location)
True

License

userpath is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

userpath-1.9.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

userpath-1.9.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file userpath-1.9.2.tar.gz.

File metadata

  • Download URL: userpath-1.9.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for userpath-1.9.2.tar.gz
Algorithm Hash digest
SHA256 6c52288dab069257cc831846d15d48133522455d4677ee69a9781f11dbefd815
MD5 0bcebc971ce7fb38aa3fde3b137d39e2
BLAKE2b-256 d5b730753098208505d7ff9be5b3a32112fb8a4cb3ddfccbbb7ba9973f2e29ff

See more details on using hashes here.

File details

Details for the file userpath-1.9.2-py3-none-any.whl.

File metadata

  • Download URL: userpath-1.9.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for userpath-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cbf01a23d655a1ff8fc166dfb78da1b641d1ceabf0fe5f970767d380b14e89d
MD5 788d5d6f5c5d0edeaa79ba12311ea98f
BLAKE2b-256 43993ec6335ded5b88c2f7ed25c56ffd952546f7ed007ffb1e1539dc3b57015a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page