This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit b33933986e98298edb7a18c4bb381c54830fe12e
tree 8f7ac9c8251c6013abd013c21108cf75ca680875
parent 383cd033d217539d9f28e4ccd7d123a785050d1d
tree 8f7ac9c8251c6013abd013c21108cf75ca680875
parent 383cd033d217539d9f28e4ccd7d123a785050d1d
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Apr 10 09:19:56 -0700 2008 | [dustin] |
| |
README.markdown | Sun Apr 13 22:16:41 -0700 2008 | [dustin] |
| |
data/ | Fri Apr 11 23:50:12 -0700 2008 | [dustin] |
| |
github.py | Sat Apr 12 13:09:19 -0700 2008 | [dustin] |
| |
githubsync.py | Tue May 13 01:55:01 -0700 2008 | [dustin] |
| |
githubtest.py | Sun Apr 13 00:44:42 -0700 2008 | [dustin] |
README.markdown
What’s on Github?
This is a library that implements github’s API in python.
Part of the reason I wrote this was to have a simple way to keep local clones of my projects. Included is githubsync.py which does that for any given user (within the limitations of the github API, which currently limits you to public projects).
Example
This code (which happens to be main in git.py)
import sys
u = GitHub().user(sys.argv[1])
print "User: %s (%s)" % (u.login, u.name)
for repo in [u.repos[k] for k in sorted(u.repos.keys())]:
print "- %s" % repo.name
print " %s" % repo.url
print " %s" % "git://github.com/%s/%s.git" % (u.login, repo.name)
Yields this result:
User: dustin (Dustin Sallings)
- app-hider
http://github.com/dustin/app-hider
git://github.com/dustin/app-hider.git
- buildwatch
http://github.com/dustin/buildwatch
git://github.com/dustin/buildwatch.git
- cache_fu
http://github.com/dustin/cache_fu
git://github.com/dustin/cache_fu.git
- diggwatch
http://github.com/dustin/diggwatch
git://github.com/dustin/diggwatch.git
- environ
http://github.com/dustin/environ
git://github.com/dustin/environ.git




