Python package manager for projects running Python3.6 and above.
Project description
pypm
Python package manager for Python 3, similar to npm. This command line tool works just like npm and should mirror its features. Python has no community adopted approach to managing projects. Also, outside of requirements.txt there is no adopted approach to storing and maintaining dependencies. In an effort to resolve this, I've introduced the pyPM tool. It uses the same package.json structure as npm, with all the configurations setup.py offers.
Install
requires Python 3.6
pip install pypm
How to Use
pyPM works just like npm. You are granted the same operations such as, init, install, uninstall, update, start, and run. Run:
pypm --help
Examples
- init
Generate a brand new package.json file from information in your requirements.txt and setup.py.pypm init
- run
Run a predefined scripts from the 'scripts' section of your package.json.pypm run tests
- start
Run the start script.pypm start
- install 1
Install all or specific packages. Using 'install' as a standalone, it will install all dependencies listed in your package.json (if exists).pypm install
orpypm install ***package1 package2***
- uninstall 1
Uninstall all or specific packages. Using 'uninstall' as a standalone, it will uninstall all dependencies listed in your package.json (if exists).pypm uninstall
orpypm uninstall ***package1 package2***
- update 1
Update all or specific packages. Using 'update' as a standalone, it will update all dependencies listed in your package.json (if exists).pypm update
orpypm update ***package1 package2***
Key
1 Any arguments that pip or npm allow can be combined into these command line arguments. Defined by adding -a/--arguments and entering arguments as such: [--no-cache, --upgrade]. NOTE: You MUST surround the arguments in brackets, it will fail it not.
Notes
Documentation is on-going, so refer to examples above for now.
Changelog
August 2020 CLI has been rebuilt; less complex.
Up Next
- No cache options when installing. - Done | You may add any arguments that are allowed for pip or npm
- Better automation algorithm when generating a new package.json
- Possible PyPI easy install
- Add package-lock.json currently in development
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.