Skip to main content

Tool to pip install missing imports and more

Project description

Tool to pip install missing imports and more

Build Status

https://img.shields.io/travis/yahoo/pipr.svg https://coveralls.io/repos/yahoo/pipr/badge.svg https://pypip.in/download/pipr/badge.svg https://pypip.in/version/pipr/badge.svg https://pypip.in/py_versions/pipr/badge.svg https://pypip.in/license/pipr/badge.svg Documentation Status

Description

pipr can install missing dependencies for any Python file and generate a requirements.txt file, so that YOU don’t have to worry about searching for and installing the dependencies manually

Requirements

pipr currently requires Python 2.7, but we are working on supporting Python 3

Installation

To install pipr, simply:

$ pip install pipr

Usage

$ pipr -h
usage: pipr [-h] [-r] [-d] filepath

positional arguments:
filepath            The path to the Python file

optional arguments:
    -h, --help          show this help message and exit
    -r, --requirements  Add --requirements to generate a requirements.txt
                        file in current directory
    -d, --debug         Add --debug to see debug output
$ cat test.py
import argparse
import sshmap, redislite
import urllib2
import sbi
# import commentimp
from time import sleep
'''
import commentimp2
'''

$ pipr test.py -d -r
Imported packages: argparse, sshmap, redislite, urllib2, sbi, time
Missing packages installed: sshmap==0.6.90, sbi==0.0.7

More Information

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

pipr-0.0.32.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

pipr-0.0.32-py2-none-any.whl (9.9 kB view hashes)

Uploaded Python 2

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