Git Product home page Git Product logo

github-metrics's People

Contributors

jakequilty avatar sgnn7 avatar

Watchers

 avatar  avatar

github-metrics's Issues

Makes too many API requests

The script hits the 5000 api requests in an hour limit before finishing. Need to either find a way to pull necessary data in less calls, or set up a counter and have it wait....the entire hour.....before continuing when the limit is reached.

Use `venv` in documentation

Using system-installed libraries is a big no-no for portable python code and for idempotent development so we need to add some info about it into the README

AC:

  • README has info on how to use python3 -m venv to isolate the installed libraries for this project

Scanning unnecessary repos

The script is scanning all of the repos in each organization and that is time and API calls that don't need to be spent. Need to make it scan repos only owned by a specific team.

Add CLI parsing

Orgs as well as GH username/password should ideally be retrieved from the CLI with a fallback for env vars. argparse library should help here.

AC:

  • Orgs can be specified on the CLI
  • Github credentials can be specified on the CLI

Use python string formatting for composed strings

Use of "foo" + blah + "bar" type strings is discouraged due to jumble of symbols needing to be visually parsed so we should transition to "foo %s bar".format(blah)"-type formatting strings in code.

AC:

  • Composed strings use <string>.format()

This project is versioned

This project has some indication of what version of code is running in both CLI and setup.py that is pulled from the same source.

AC:

  • We can print out the code version on the CLI
  • Code version in setup.py matches the CLI version
  • Both version are pulled from the same place (to avoid duplication / desync)

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.