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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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