small little service that lets you stalk other people on GitHub.
GG_GITHUB_TOKEN: your GitHub token. if you run GitGetter with it, you have more calls to the API. you can get the token here.GG_SERVICE_PORT: the port on which the service is callable. by default the port is set to 5000.GG_SERVICE_DEBUG: debug mode is by defaultTrue. passFalsein this environment variable to change it.
download it:
git clone https://github.com/IronicUsername/GitGetter.gitand run it:
docker-compose up --force-recreate --build -din order to develop on GitGetter you need to have poetry installed. after you have done that, install all dependencies
poetry installand access the virtual environment
poetry shelllint the code with
flake8 . && mypy src/ && pydocstyle src/and test it with
pytest -n 4 -x # -n for 4 parallel jobs & -x to stop on the first encountered errorGET /active/IronicUsername| parameter | type | description |
|---|---|---|
user |
string |
required. the username of the person you stalking. |
if the user has pushed code within the last 24h it's set to true, else false.
{
"was_active": bool
}GET /downwards/IronicUsername/GitGetter| parameter | type | description |
|---|---|---|
user |
string |
required. the username of the person you stalking. |
repo |
string |
required. the GitHub repository in question. |
if more code got deleted from a specific user repo than added, it's set to true, else false.
{
"downwards": bool
}GET /downwards1/GitGetter| parameter | type | description |
|---|---|---|
repo |
string |
required. the GitHub repository in question. |
if more code got deleted from a user repo than added, it's set to true, else false.
{
"downwards": bool
}