Skip to main content

GitHubHealth is a Python library for monitoring code health in GitHub.

Project description

GitHubHealth

PyPI version Code style: black pre-commit pylint Buy me a coffee

GitHubHealth is a Python library for monitoring code health in GitHub.

Installation

Use the package manager pip to install GitHubHealth.

# shell
pip install GitHubHealth

Usage

Set access token environment variable.

# shell
export GITHUB_TOKEN=<your github pat>

Get repo health as pandas DataFrame.

# python
import os
from GitHubHealth.main import ACCESS_TOKEN_VAR_NAME
from GitHubHealth import GitHubHealth
my_repo_health = GitHubHealth(gat=os.environ[ACCESS_TOKEN_VAR_NAME], timeout=4)
my_repo_health.user.get_repo_df()
my_repo_health.user.repo_df

Launch Flask app to view repo health tables and plots.

# python
from GitHubHealth import app
app.run()
# python
raise Exception

Contributing

Collaborators can be added on a case by case basis so please reach out if you would like to
contribute. As this is a personal hobby I will review any PRs and manage access and deployment
myself. I welcome any issues and feature requests to be submitted and will try to reply in a
timely manner. Please make sure to update tests as appropriate. I advise using use pre-commit to
help with automated testing and adhering to pylint and black formatting standards.

License

MIT

Project details


Download files

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

Source Distribution

GitHubHealth-0.0.0.1641127350.tar.gz (114.7 kB view details)

Uploaded Source

Built Distribution

GitHubHealth-0.0.0.1641127350-py3-none-any.whl (112.4 kB view details)

Uploaded Python 3

File details

Details for the file GitHubHealth-0.0.0.1641127350.tar.gz.

File metadata

  • Download URL: GitHubHealth-0.0.0.1641127350.tar.gz
  • Upload date:
  • Size: 114.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for GitHubHealth-0.0.0.1641127350.tar.gz
Algorithm Hash digest
SHA256 51c8d5cb7757390575f7b4e5af9e7b5bf0e9437cf9195a7796cd2d12c7a56482
MD5 e7d0c6b16d03b605111124911d461300
BLAKE2b-256 6635a1e034d03f013b1c9a0f1d04c48c587095b1baa9dbf9d1bf998472561934

See more details on using hashes here.

File details

Details for the file GitHubHealth-0.0.0.1641127350-py3-none-any.whl.

File metadata

  • Download URL: GitHubHealth-0.0.0.1641127350-py3-none-any.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for GitHubHealth-0.0.0.1641127350-py3-none-any.whl
Algorithm Hash digest
SHA256 9fca4e5dfe95525fb9c23516da27198ff148a4247fb791454d9e2337233aeffb
MD5 e1c898fdaf06f040b5793841c7a5fa11
BLAKE2b-256 0c6d1b553ae189f4038688e261adfb9c30db0cf3d8550cebdbd945a3b5b17d9c

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