Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.9.2 instead.
Reason given by maintainers: compatibility regression

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.

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

If you're not sure about the file name format, learn more about wheel file names.

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.

Release history Release notifications | RSS feed

1.9.2

2 files

1.9.1

2 files

This release

1.9.0 This release

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page