Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbarbary/ghdash
Very simple github newsfeed for teams
https://github.com/kbarbary/ghdash
Last synced: about 1 month ago
JSON representation
Very simple github newsfeed for teams
- Host: GitHub
- URL: https://github.com/kbarbary/ghdash
- Owner: kbarbary
- License: mit
- Created: 2015-05-16T03:40:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T08:01:11.000Z (about 8 years ago)
- Last Synced: 2024-05-09T19:19:29.196Z (6 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ghdash
======A very simple github newsfeed for teams.
Requires [requests](http://docs.python-requests.org/),
[jinja2](http://jinja.pocoo.org/),
[flask](http://flask.pocoo.org) and Python 2.7 or 3.3+.## Usage
Add a file `users.txt` to this directory listing your team's github user names.
Launch the flask app in development mode:
```
$ export FLASK_APP=ghdash.py
$ flask run
* Serving Flask app "ghdash"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
```The page will auto-refresh every 5 minutes, so it is suitable for
displaying on a monitor without intervention.## Authentication
GitHub limits the requests per hour allowed to their
API. Unauthenticated requests are allowed only 60 requests per
hour, which you will quickly reach.
To get 5000 requests per hour, add the line```
machine api.github.com login GITHUB_USERNAME password GITHUB_PASSWORD
```to your `~/.netrc` file. The requests library picks up these credentials
automatically.You'll see the remaining requests per hour for each fetch printed in the
terminal:```
INFO: kbarbary: 1 new event [4996/5000]
```## Rate limiting
The app respects GitHub's requested rate limits, so for frequent page
refreshes, you'll see something like:```
INFO: kbarbary: polled 24s ago. Next poll allowed in 36s.
```