Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Pypi.py
Created March 26, 2013 04:46
Pypi
import urllib
import tarfile
import shutil
import console
import os
class Installer(object):
name = None
version = None
firstLetter = None
@mmurdoch
mmurdoch / Github Example.py
Created November 10, 2012 15:08
Example of using github library for Pythonista.
import console
import keychain
import traceback
from github import Github
def printRepository(username):
g = Github(username, getGithubPassword(username))
user = g.get_user()
repositories = user.get_repos()
@mmurdoch
mmurdoch / Get Github Library.py
Last active April 29, 2023 19:45
Download github library for Pythonista.
# Note that this script attempts to delete directories (Folders) called 'temp' and 'dateutil'
# within Pythonista as part of installation. It will also overwrite files in directories
# named 'github' and 'githubista'. If you are using Pythonista 1.3 or above please check
# that you have not created any Folders with these names before running this script as
# any files inside them will be irretrievably lost.
import os
import urllib2
import tarfile
import shutil
import traceback