Giter Site home page Giter Site logo

rahulbagad / github-contribution-leaderboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javatarz/github-contribution-leaderboard

0.0 1.0 0.0 896 KB

Helps build a Hacktoberfest leaderboard on command line

License: Apache License 2.0

Python 87.49% Shell 0.54% CSS 3.09% HTML 2.91% JavaScript 5.96%

github-contribution-leaderboard's Introduction

Test

Installation

pip3 install pipenv
pipenv install --dev
pipenv shell

Usage

CLI

python stats.py --help
usage: stats.py [-h] -at ACCESS_TOKEN [-m leaderboard, prs, all] -u USERS [USERS ...]
                [-s START_DATE] [-e END_DATE]

arguments:
  -at ACCESS_TOKEN, --access-token ACCESS_TOKEN
  -u USERS [USERS ...], --users USERS [USERS ...]

optional arguments:
  -h, --help            show this help message and exit
  -m MODE, --mode MODE
                        one of leaderboard, prs or all
  -s START_DATE, --start-date START_DATE
                        date format YYYY-mm-dd
  -e END_DATE, --end-date END_DATE
                        date format YYYY-mm-dd
                        
example:
python stats.py \
-at f1a6f157cff1d9aa284350a71a813a25788f3be3 \
-u javatarz mojombo defunkt \
-s 2019-10-01 \
-e 2019-10-31 \
-m all

Web

  • Create a folder named instance with two files named config.py and secrets.py

  • config.py should look like this;

    USERS = ['javatarz', 'mojombo', 'defunkt']
    START_DATE = '2019-10-01'
    END_DATE = '2019-10-31'
  • secrets.py should look like this;

    ACCESS_TOKEN = 'YOUR_GITHUB_ACCESS_TOKEN'
  • Start the application;

    flask run

Contributions

Please read the contribution guide for detailed steps on how to contribute to this project

github-contribution-leaderboard's People

Contributors

javatarz avatar vishalsh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.