• Stars
    star
    129
  • Rank 277,603 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cross-platform tool for adding locations to the user PATH, no elevated privileges required!

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.

More Repositories

1

bit

Bitcoin made easy.
Python
1,240
star
2

pyapp

Runtime installer for Python applications
Rust
1,147
star
3

pypinfo

Easily view PyPI download statistics via Google's BigQuery.
Python
364
star
4

privy

An easy, fast lib to correctly password-protect your data
Python
238
star
5

csi-gcs

Kubernetes CSI driver for Google Cloud Storage
Go
152
star
6

coincurve

Cross-platform Python bindings for libsecp256k1
Python
128
star
7

hatch-vcs

Hatch plugin for versioning with your preferred VCS
Python
97
star
8

hatch-mypyc

Hatch build hook plugin for Mypyc
Python
35
star
9

venum

Verifiably better, validated Enum for Python
Python
31
star
10

hatch-showcase

A project showcasing features and plugins for Hatch
Python
26
star
11

extensionlib

The toolkit for building extension modules
Python
24
star
12

hatch-containers

Hatch plugin for Docker containers
Python
21
star
13

pybin

Cross-platform tool to put Python's user bin in PATH, no sudo/runas required!
Python
21
star
14

rusty

Rusty example CLI
Rust
14
star
15

binary

Easily convert between binary and SI units (kibibyte, kilobyte, etc.).
Python
9
star
16

terminal-demo

Produce GIFs from shell commands
Python
8
star
17

hatch-autorun

Hatch build hook plugin to inject code that will automatically run
Python
7
star
18

pyproject-validate

Validate and format pyproject.toml files
Python
4
star
19

depq

CPython double-ended priority queue (DEPQ)
Python
3
star
20

mkpatcher

Python-Markdown extension allowing arbitrary scripts to modify MkDocs input files
Python
2
star
21

katutil

utilities for automating tasks on KickassTorrents
Python
2
star
22

ofek

Python
2
star
23

spry

Modern file transfer utility supporting HTTPS & SFTP.
Python
2
star
24

talks

Collection of potential talks and associated materials
2
star
25

ink

Digital signatures made easy.
Python
1
star
26

pyoxidizer-build-example

Repo showing how to build PyOxidizer executables for every platform
Starlark
1
star
27

perplex

Perpetual Plex in the Cloud
Python
1
star
28

everlib

Everlasting media library backed by cloud storage
Python
1
star