Github Archive
A command line utility for concurrent processing and management of github event archives.
Dependencies
- MYSQL (For storing replica data)
- REDIS (For processing queue persistence)
Installation
On a OSX:
$ brew install mysql (Follow instructions for launching)
$ brew install redis (Follow instructions for launching)
Get the gem:
$ gem install github-archive
Setup Redis for Resque
$ github-archive setup_mysql --database=DATABASE --server=SERVER --username=USERNAME
$ github-archive setup_redis --port=PORT --server=SERVER
Launch workers for processing github data
$ github-archive process_archives --proc-count=PROC_COUNT
Get Stats
$ github-archive gh_repo_stats --after=AFTER --before=BEFORE --event=EVENT -n=N
Example:
$ github-archive gh_repo_stats --event=WatchEvent --after=2012-12-10T04:05:06+07:00 --before=2012-12-11T04:05:06+07:00 -n=20
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request