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.1640205092.tar.gz (110.5 kB view details)

Uploaded Source

Built Distribution

GitHubHealth-0.0.0.1640205092-py3-none-any.whl (108.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: GitHubHealth-0.0.0.1640205092.tar.gz
  • Upload date:
  • Size: 110.5 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.1640205092.tar.gz
Algorithm Hash digest
SHA256 8a895fbac5647bbbb2e6862fb49c07b926e63a3dc4683e5ad0e89504789d992a
MD5 1416dd23277c22a6482db145e2e82113
BLAKE2b-256 3cbc4d786bbb339e8194832f94b81e241a5ea273d4a65f1a5b0338e733ae8759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: GitHubHealth-0.0.0.1640205092-py3-none-any.whl
  • Upload date:
  • Size: 108.2 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.1640205092-py3-none-any.whl
Algorithm Hash digest
SHA256 be09a8690bb339f7fe4fb585ebb9e437d650f55c5a864445ce4aa9a98e67bc35
MD5 0adbe8a7e525d81e0baaca23d9cf0cbc
BLAKE2b-256 5d89025650a050a2a37e7f3ae374ee2774587b68973beb3d442bf90d37e15d2e

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