Skip to content

Instantly share code, notes, and snippets.

View dimitrilw's full-sized avatar

Dimitri dimitrilw

  • Colorado
  • 05:38 (UTC -06:00)
View GitHub Profile
@dimitrilw
dimitrilw / pipista.py
Created June 13, 2016 13:03 — forked from pudquick/pipista.py
pipista - pip module (for installing other modules) for Pythonista
import os, os.path, sys, urllib2, requests
class PyPiError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def _chunk_report(bytes_so_far, chunk_size, total_size):
if (total_size != None):