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

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

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.36.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipr-0.0.36-py2-none-any.whl (10.0 kB view details)

Uploaded Python 2

File details

Details for the file pipr-0.0.36.tar.gz.

File metadata

  • Download URL: pipr-0.0.36.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipr-0.0.36.tar.gz
Algorithm Hash digest
SHA256 07b427b7d6593677bc8bd243f5aef4d9f9bdbe312387542fa9a568c774cad4bf
MD5 327bd77a6fd4d0772730b435b190d364
BLAKE2b-256 d633511e2ce065641e7cc35cbf45d423305434ccd1ab8909bb0e3e7750a22638

See more details on using hashes here.

File details

Details for the file pipr-0.0.36-py2-none-any.whl.

File metadata

File hashes

Hashes for pipr-0.0.36-py2-none-any.whl
Algorithm Hash digest
SHA256 35ea5bc29ca24b1c74126d5f7c8d60e0b3d614e12a6a14f6b0a3c1b943816dab
MD5 2c136b763fe77a3cc1ed4a5393f1010a
BLAKE2b-256 19241da8d674377faca1901b70251025922963af402b6ee82e34ef0ed66198e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page