Skip to content

Instantly share code, notes, and snippets.

View RobbieClarken's full-sized avatar
🦀

Robbie Clarken RobbieClarken

🦀
View GitHub Profile
@RobbieClarken
RobbieClarken / pipista.py
Last active June 15, 2016 09:50 — forked from pudquick/pipista.py
pipista - pip module (for installing other modules) for Pythonista
from __future__ import print_function
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):