{"id":13586663,"url":"https://github.com/ofek/userpath","last_synced_at":"2025-05-16T06:04:30.925Z","repository":{"id":39461111,"uuid":"104287918","full_name":"ofek/userpath","owner":"ofek","description":"Cross-platform tool for adding locations to the user PATH, no elevated privileges required!","archived":false,"fork":false,"pushed_at":"2024-06-10T19:40:39.000Z","size":85,"stargazers_count":159,"open_issues_count":17,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T15:14:01.777Z","etag":null,"topics":["cross-platform","devops","path","system"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ofek.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ofek"],"custom":["https://ofek.dev/donate/","https://paypal.me/ofeklev"]}},"created_at":"2017-09-21T01:48:04.000Z","updated_at":"2025-04-04T02:02:17.000Z","dependencies_parsed_at":"2024-12-20T00:06:02.755Z","dependency_job_id":"73251659-5fd4-43ae-b67b-558cf5392691","html_url":"https://github.com/ofek/userpath","commit_stats":{"total_commits":64,"total_committers":9,"mean_commits":7.111111111111111,"dds":0.21875,"last_synced_commit":"981085be7669815a186420e1211ed9944ab928ba"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fuserpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fuserpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fuserpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fuserpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofek","download_url":"https://codeload.github.com/ofek/userpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253553577,"owners_count":21926601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cross-platform","devops","path","system"],"created_at":"2024-08-01T15:05:43.340Z","updated_at":"2025-05-16T06:04:30.893Z","avatar_url":"https://github.com/ofek.png","language":"Python","funding_links":["https://github.com/sponsors/ofek","https://ofek.dev/donate/","https://paypal.me/ofeklev"],"categories":["Python"],"sub_categories":[],"readme":"# userpath\n\n| | |\n| --- | --- |\n| CI/CD | [![CI - Test](https://github.com/ofek/userpath/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/userpath/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/userpath/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/userpath/actions/workflows/build.yml) |\n| Package | [![PyPI - Version](https://img.shields.io/pypi/v/userpath.svg?logo=pypi\u0026label=PyPI\u0026logoColor=gold)](https://pypi.org/project/userpath/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/userpath.svg?logo=python\u0026label=Python\u0026logoColor=gold)](https://pypi.org/project/userpath/) |\n| Meta | [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors\u0026style=social)](https://github.com/sponsors/ofek) |\n\n-----\n\nThis is a tool for modifying a user's `PATH`.\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [CLI](#cli)\n- [API](#api)\n- [License](#license)\n\n## Installation\n\n```console\npip install userpath\n```\n\n## CLI\n\n```console\n$ userpath -h\nUsage: userpath [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --version   Show the version and exit.\n  -h, --help  Show this message and exit.\n\nCommands:\n  append   Appends to the user PATH\n  prepend  Prepends to the user PATH\n  verify   Checks if locations are in the user PATH\n```\n\n## API\n\n```pycon\n\u003e\u003e\u003e import userpath\n\u003e\u003e\u003e location = r'C:\\Users\\Ofek\\Desktop\\test'\n\u003e\u003e\u003e\n\u003e\u003e\u003e userpath.in_current_path(location)\nFalse\n\u003e\u003e\u003e userpath.in_new_path(location)\nFalse\n\u003e\u003e\u003e userpath.append(location)\nTrue\n\u003e\u003e\u003e userpath.in_new_path(location)\nTrue\n\u003e\u003e\u003e userpath.need_shell_restart(location)\nTrue\n```\n\n## License\n\n`userpath` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofek%2Fuserpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofek%2Fuserpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofek%2Fuserpath/lists"}