Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.
/ pipr Public archive

Tool to pip install missing imports and more

License

Notifications You must be signed in to change notification settings

YahooArchive/pipr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipr

Tool to pip install missing imports and more

Build Status

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 supports both Python 2.7, and Python 3.4

Installation

To install pipr, simply:

$ pip install pipr

Usage

$ pipr -h
usage: pipr [-h] [-r] [-d] [-R] 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
    -R, --recursive     Add --recursive to handle project-wide dependency
$ 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

Because we added -r, there will a requirements.txt file generated in the current directory.

More Information

About

Tool to pip install missing imports and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages