Picks the right package manager for you
Project description
onepm
Picks the right package manager for you
Don't make me think about which package manager to use when I clone a project from other people. OnePM will pick the right package manager by searching for the lock files and/or the project settings in pyproject.toml
.
This project is created in the same spirit as @antfu/ni.
Supported package managers: pip, pipenv, poetry, pdm
Install onepm
Install with pipx
:
pipx install onepm
Or use pdm global install:
pdm add -g onepm
Provided Shortcuts
pi
- install
pi
# (venv) pip install . or pip install -r requirements.txt
# pipenv install
# poetry install
# pdm install
pi requests
# (venv) pip install requests
# pipenv install requests
# poetry add requests
# pdm add requests
pu
- update
pu
# not available for pip
# pipenv update
# poetry update
# pdm update
pr
- run
pr ...args
# (venv) ...args
# pipenv run ...args
# poetry run ...args
# pdm run ...args
pun
- uninstall
pun requests
# pip uninstall requests
# pipenv uninstall requests
# poetry remove requests
# pdm remove requests
pa
- Alias for the package manager
pa
# pip
# pipenv
# poetry
# pdm
If the package manager agent is pip, OnePM will enforce an activated virtualenv, or a .venv
under the current directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file onepm-0.2.0.tar.gz
.
File metadata
- Download URL: onepm-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e335ff8c8bdac4427c59359856e57354b9cade177aee8ab3803ff0f16c48ec65 |
|
MD5 | 7d23af01e4ec5da8ff4e2cb163d7a6bc |
|
BLAKE2b-256 | 9ff111cb44bb09f41b9e5bd61110f6b37cef747dab33b56090dd196e21f945e2 |
File details
Details for the file onepm-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: onepm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d10ca4e68ce444f2f99d6a10aa640258ee83433f9cf286bb23495dea66f79f0 |
|
MD5 | f0e6e97f16dffd504f9246a9d76bf713 |
|
BLAKE2b-256 | 863e913890b31245a2fa0b97fdfb090885d349d025f1650c48d476393e35ccde |