Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onepm-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

onepm-0.3.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file onepm-0.3.0.tar.gz.

File metadata

  • Download URL: onepm-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for onepm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d680a9f442749cf1be7043893b10bb4b4cd70c0e07fb3e36a57f4bcb5345ae52
MD5 c92a980cd82f8ac613824c368b6d9229
BLAKE2b-256 cff600d4a2751fc500a51b8af1c4307a819918940aaedd65042f83018427c172

See more details on using hashes here.

File details

Details for the file onepm-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: onepm-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for onepm-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d82c8c2dd0192c3f2dde86fd03adf9586fc8a405c0334607e5957cc42edafbfe
MD5 65020e728c57463fddb4b2b8427dcf3e
BLAKE2b-256 a14e6a784c85fe342338d055afceb19232e03eea8df8bad5bcdee5794a65b948

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