Skip to main content

Python implementation of the InnerSourceCommons Repository Activity Score pattern algorithm

Project description

repo-activity-score

The goal of this repository is to collect reference implementations of the Repository Activity Score.

Currently we got only a single implementation (in Python), but are considering to add similar versions for JavaScript, Go and C#. Feel free to contribute other implementations! :)

Installation

pip install repo-activity-score

Usage

import repo_score.score as Score

# code sample - get the repo json data
# https://github.com/zkoppert/innersource-crawler
github_repo_json = github.get_repo

score = Score.calculate(github_repo_json)

Limitations

These implementations assume that the repositories for which you want to calculate the Repository Activity Score are hosted in GitHub i.e. the respective metadata is available via the GitHub Search API and GitHub stats/participation API. The current algorithm is based on the structure available through the zkoppert/innersource-crawler result.

Some incompatibility could be found, however, it should be possible with relatively low effort to adapt these implementations to other version control systems.

Educational purposes only

These implementations are provided as reference implementations and with that for educational purposes only.

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

repo-activity-score-0.0.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

repo_activity_score-0.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file repo-activity-score-0.0.4.tar.gz.

File metadata

  • Download URL: repo-activity-score-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for repo-activity-score-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a89ae80462337055d181765f91b697d24ade8951e622a59efadc1ccdcde5a2c1
MD5 bbc1359761fa0ff04b41af777e354032
BLAKE2b-256 5f101cb4ccfbac925c71ae29faa26a318fd7e037bed36988bb0609b1f9a4f785

See more details on using hashes here.

File details

Details for the file repo_activity_score-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: repo_activity_score-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for repo_activity_score-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 27628fad36400b9e08c2a5c5300981cf25630755fff4ee859fe584b8548e6ce9
MD5 395e2f863a9d5a9b79047bc50d518fb3
BLAKE2b-256 6aa4e92f6b0b97ee156072b0841f2816c1f687f805e8878dfd31969841ea156c

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