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

Provided Shortcuts

pi - install

pi

# (venv) pip install . or pip install -r requirements.txt
# pipenv install
# poetry add
# pdm add
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 command ...args

# (venv) command ...args
# pipenv run command ...args
# poetry run command ...args
# pdm run command ...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.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

onepm-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: onepm-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for onepm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 70e7439ee256276ceca4d95d755a9d7e520028437f359d1e54bca0dc9bdb8c26
MD5 7e6e1156bce19c4d5126a6d69840725e
BLAKE2b-256 ece49326de2117190ba7aa6429a044601740dc2b27e7ddd0278480a2086c3037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: onepm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for onepm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b0100e6dd30d5ac48dc1b466a792529cbf5d5bc19c96d24bca4b0c0c7951c2e
MD5 8352b5c917ae9de32db717ea70114f3b
BLAKE2b-256 c5eec7940dbe2646de81e2af46454d7ada03b972924f0851ea7f9d3708704689

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