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

Uploaded Source

Built Distribution

GitHubHealth-0.0.0.1641126251-py3-none-any.whl (113.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: GitHubHealth-0.0.0.1641126251.tar.gz
  • Upload date:
  • Size: 114.9 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.1641126251.tar.gz
Algorithm Hash digest
SHA256 1c81f0c090866a4aec909a31b4a48eca9a8a8273145608a321918718d0dfa55c
MD5 3824ff0a5562fa1dc09e2729838ec005
BLAKE2b-256 8753960f4b8c9be3a8e7fd35158d8982e15b5c1a6c03f618dfb7fadd656932ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: GitHubHealth-0.0.0.1641126251-py3-none-any.whl
  • Upload date:
  • Size: 113.0 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.1641126251-py3-none-any.whl
Algorithm Hash digest
SHA256 842c0e5acba18cf5756fc739d8eda29978aec9d0fe6556c0855485d77dfd68bf
MD5 ac19e638b69d4dcf4b474fbf490c4b1f
BLAKE2b-256 1fb726f6993f09e796c472447159c6d74e65e6a70df70f097100cc0aac196451

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