Trustable score is a Django application that provides a simple and efficient way to calculate and provide scores for repositories.
The recommended way to install Trustable score Django application is to use
poetry.
This package manager will install the tool and all its dependencies.
You can install poetry
by following this guide.
-
Clone the repository:
git clone [email protected]:Bitergia/trustable-score.git cd trustable-score
-
Install dependencies and tool:
poetry update poetry install
Add the trustable_score
app to your Django project. You can do this by adding
the following line to your settings.py
file:
INSTALLED_APPS = [
# ...
'trustable_score',
# ...
]
Add the following line to your urls.py
file:
from trustable_score.urls import urlpatterns as trustable_score_urls
urlpatterns = trustable_score_urls + [
# ... your URL conf ...
]
This application provides a simple API to calculate and provide scores for repositories.
The API is available at /repository/<id>/trustable/score/<id>
. The API will return
a JSON object with the score for the repository.