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 details)

Uploaded Source

File details

Details for the file github-report-0.1.tar.gz.

File metadata

  • Download URL: github-report-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for github-report-0.1.tar.gz
Algorithm Hash digest
SHA256 0b660e1a33b7045ce5ce30fe4ed4d2bf8a17c8135e4efabb567354e38d1627bf
MD5 19ce79bfd76d67eb2da3a09a91f09c4b
BLAKE2b-256 2b358cb01d380209f44ab1f41ba6e57b533da522bb64ca668bc8c608269d629f

See more details on using hashes here.

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