Skip to main content

Generates a report of metadata about repositories for a GitHub user or organization

Project description

Description

This script helps analyze GitHub repositories for a user or organization. It fetches a list of repositories owned by a user or organization and generated a custom report in a number of formats.

In particular, it was designed for showing the size of repositories and the LFS storage they use. Unfortunately the GitHub API doesn't report the LFS usage, so this tool with clone the repos in order to get the LFS size. This is slow, but it is the primary purpose of this tool, since there's no other way to do it.

Requirements

Local Development Setup

  • Create a virtualenv: virtualenv <path>
  • Activate your virtualenv: source <path>/bin/activate (on Linux/Mac), source <path>/Scripts/activate (in bash on Windows), or <path>\Scripts\activate.bat (in Windows command prompt)
  • Use pip install -r requirements.txt in your virtualenv to install required libraries.
  • Run python github_report.py. You may need command-line options to specify options. See python github-storage-usage.py -h for option help.

Authentication

Without authentication you can generate a report for any user's or organization's public repos. To include private repos you will need to authenticate as a user who has permission to see them. To do so, log into GitHub and generate a personal access token that has at least the repo permission. Pass this token on the command-line to the --token option, or put it in a .token file (or some other file that can be read with the --token-file option).

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github-report-0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page