Skip to main content

A pip alternative for managing python packages

Project description

A shameless clone of npm for managing python packages.

Do not take this project seriously

it's just a pip install command with some features for personal needs.

Installation

pip install pip-ppm

requirements.json file initialization

ppm init

ppm init command creates a file contains:

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "author": "",
  "license": "ISC",
}

Install a package and save to the requirements.json file

ppm install flask --save
ppm install flask==1 --save
ppm install flask ipython --save

When you use ppm install command with --save flag, it's saving installed packages to the requirements.json file

{   
    ...
    "requirements": {
        "django": "2",
        "djangorestframework": ""
    }
}

Install packages pre-defined in requirements.json file

ppm install
...
Successfully installed django-2.0 djangorestframework-3.10.3

Available commands

Usage: ppm [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  init       Initializes requirements.json file
  install    Installs given package[s]
  uninstall  Uninstalls given package[s]
  dump       Dumps requirements.json file to `pip freeze` format

Project details


Download files

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

Files for pip-ppm, version 0.0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size pip-ppm-0.0.2.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page