Skip to content

Script to auto generate Python package info on requirements.txt

Notifications You must be signed in to change notification settings

hanksudo/pypi-info-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pypi-info-generator

Script to auto generate Python package info on requirements.txt

prerequisites

OSX

brew install jq

Ubuntu

sudo apt-get install jq

Installation

curl -L https://raw.githubusercontent.com/hanksudo/pypi-info-generator/master/pypi-info.sh -o ~/bin/pypi-info && chmod +x ~/bin/pypi-info

Usage

pypi-info requirements.txt

input file: requirements.txt

Pygments==2.0.2
simplejson==3.3.1
oauth2client

output file: new-requirements.txt

# Pygments is a syntax highlighting package written in Python.
# http://pygments.org/
Pygments==2.0.2

# Simple, fast, extensible JSON encoder/decoder for Python
# http://github.com/simplejson/simplejson
simplejson==3.3.1

# OAuth 2.0 client library
# http://github.com/google/oauth2client/
oauth2client

About

Script to auto generate Python package info on requirements.txt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages