Skip to main content

Cross-platform tool for adding locations to the user PATH

Reason this release was yanked:

compatibility regression

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.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

userpath-1.9.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for userpath-1.9.0.tar.gz
Algorithm Hash digest
SHA256 85e3274543174477c62d5701ed43a3ef1051824a9dd776968adc411e58640dd1
MD5 b85b9b3b9e06f7c2dd3eb009ce83b3dc
BLAKE2b-256 f62f7669aa1664b608d908dd2fe905c2e5d1adcc90260c1690721b985a18ccc5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for userpath-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8069f754d31edfbdb2c3b2e9abada057ce7518290838dac35d1c8cee1b4cc7b0
MD5 e717c6ca5e2e70ed51417b0a37aad852
BLAKE2b-256 54e45a33b7d5d2a7387ad7d5cf11cab2b832fd36ace778597e365595c5a12041

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