Package: pypm2
PyPMPypm is a python package manager for projects using Python 3 and above. This library is similar to npm. This command line tool works just like npm and should mirror its features.ReasonThe python community has no package management tool that is closely maintained. Also, outside of requirements.txt there is no adopted approach to storing and maintaining dependencies. In an effort to change this, I've introduced the PyPM tool. It uses the same package.json structure as npm, with all the configurations setup.py offers.UPDATED:Its been brought to my attention (by a redditor; shock), that the above statement was in fact a lie. So, let me be clear. This project was written over 2 years ago, in 2 hours, when I was creating my PyReact library (you can find the repo on my page). It was an effort to package up the framework to mimic ReactJS, and consequently, npm. Myself nor any of my other close Python devs had heard of Flint or Poetry, so I made my own dependency manager. I was today years old (10 August 2022) when it was brought to my attention. So, for rightfully argumentative community, I've decided to make this disclaimer that PyPM is not a game-changer and is just yet another option of Python package managers.Another note, it currently usessetup.cfgas the configuration file. This will be changed to adopt the.tomlconfiguration file approach.This project intends to introduceanotherproject management tool to the Python community.Installrequires Python 3.6 or abovePyPIpipinstallpypm2Locallygitclonehttps://github.com/ableinc/pypmcdpypm
pipinstall--editable.Visit PyPi:PyPi for PyenvHow to UsePyPM works just like npm. You are granted the same operations such as, init, install, uninstall, update, start, and run.
Run:pypm--helpUsageinitGenerate a brand new package.json file from information in your requirements.txt and setup.py.pypminitrunRun a predefined scripts from the 'scripts' section of your package.json.pypmruntestsstartRun the start script.pypmstartinstall1Install all or specific packages. Using 'install' as a standalone, it will install all dependencies listed in your package.json (if exists).pypminstallorpypminstallpackage1package2uninstall1Uninstall all or specific packages. Using 'uninstall' as a standalone, it will uninstall all dependencies listed in your package.json (if exists).pypmuninstallorpypmuninstallpackage1package2update1Update all or specific packages. Using 'update' as a standalone, it will update all dependencies listed in your package.json (if exists).pypmupdateorpypmupdatepackage1package2setupInstead of manually creating setup.py and setup.cfg files, you can add the same arguments under the 'setup' key in the package.json (refer to package.json), then run pypm setup to install your project locally.pypmsetupUpdate setuptools, wheel, pip:pypmsetupTrueSpecify a version of python to use:pypmsetup--pythonpython3.9getreqsGenerate the requirments.txt file based on your (virtual) environment.pypmgetreqsKey1Any arguments that pip or npm allow can be combined into these command line arguments. Initiated by adding --arguments option. Example:pypm--arguments--no-cacheinstallpydotenvsThe above example will install the library pydotenvs via PyPI using Pip's built in --no-cache feature.If you have multiple arguments to append to a command you can seperate them by commas. For example:pypm--arguments--no-cache,--verbose,--logs,~/DownloadsinstallpydotenvsNotesDocumentation is on-going, so refer to examples above for now.Unfortunately someone beat me to the name pypm. Note that when you use pip install be sure to include the 2. This would normally be an issue if you imported this package, but it's a command line toolWhen installing using npm, the package.json will not update dependencies. This is a known bug. Until fixed, use npm/npx to do your installing for node projects. All other features work.When generating the setup.py & setup.cfg files for development mode installation pip, setuptools and wheel may need to be updated. Follow the instructions above to update alongside setup functionality.ChangelogJanuary 2023Fixed bug with stdlib_list library - it is limited to python version <= 3.9. Future updates to the library will remove this dependency.Updated micro version number. New version 0.2.1August 2022Updated how the package is installed on the systemNew algorithm for automatically generating the requirements.txt file has been addedpypm initcan now generate the requirements.txt file by pypm command (pypm getreqs)You can now specify a version of python to use forpypm setup. By default it will use python3.June 2021Enhanced the arguments feature for CLI tool.April 2021Minor bug fix to CLI tool; version update.September 2020Verbose is no longer defaultSetup.py functionality added to package.jsonCustom error messagesCLI updatesSetup.py feature  has been introduced in version 0.1.3August 2020CLI has been rebuilt; less complex.PyPI easy install;  pip install pypm2Up NextNo cache options when installing. -Done| You may add any arguments that are allowed for pip, npm or any other CLI tool argumentsBetter automation algorithm when generating a new package.json -DonePossible PyPI easy install -DoneAdd package-lock.json -currently in developmentReplace setup.py & setup.cfg, move functionality to package.json -DonePyPI upload built inDone