I looked up how it was in version 0.0.1 from 12 years ago and it turns out the original CLI format was made to look like Mathematica [1]: "Interactive execution with automatic history, tries to mimic Mathematica's prompt system".
166 karma · joined March 11, 2013
I looked up how it was in version 0.0.1 from 12 years ago and it turns out the original CLI format was made to look like Mathematica [1]: "Interactive execution with automatic history, tries to mimic Mathematica's prompt system".
import json, pip, re
from base64 import b64decode
from itertools import chain
from collections import Counter
def get_name(x):
"This captures most of the base names for dependencies"
if x.startswith('#'):
return
try:
return pip.req.InstallRequirement.from_line(re.sub('["\']', '', x)).name.lower()
except ValueError:
return
C = Counter()
data = []
with open('pypi-deps.csv', 'r') as file:
for line in file:
name, version, deps = line.split('\t')
deps = filter(None, map(get_name, json.loads(b64decode(deps))))
data+= [(name, version, deps)]
for x in deps: C[x] += 1
print '\n'.join('{0}\t{1}'.format(*x) for x in C.most_common(20))
The results: setuptools 1949
django 546
zope.interface 244
requests 241
lxml 204
zope.component 203
simplejson 202
flask 158
zc.buildout 127
argparse 110
zope.schema 109
python-dateutil 108
jinja2 105
distribute 104
pyyaml 103
fanstatic 95
beautifulsoup 93
zope.publisher 91
sqlalchemy 91
numpy 89Unfortunately, by default it uses MD5 and 8-character passwords. I always set this to SHA256 and at least 12 characters when first installing the extension on some device/browser.
Most sites play well with this, but there are exceptions: having to change a password is a bit ugly when the passwords are generated from a given master password and the site's domain name. A more common problem is when a site refuses to accept certain characters in the hashed password or when a site requires some number of digits and uppercase letters, for instance. I currently just store these exceptions with Keepass.
I see 1Password being mentioned a lot but I started using PasswordMaker and Keepass well before I'd first heard of 1Password so I don't know how it might compare.
grep bar -A 5 -B 5 files... | grep foo
-A n prints n lines following the match (bar) and -B n prints n lines before the match.wget http://i.stanford.edu/~ullman/focs/ch{01..14}.pdf && pdftk ch*.pdf cat output merged.pdf