GitHub API wrapper
-
Download this package from release page
-
Install package with pip
pip install <.whl file name>
-
Set Environment variable with
.env
or OS settingGH_TOKEN=your_github_token
-
Call MyGHub CLI
$ myghub get issues owner/repository closed '2020-01-01 00:00:00' '2020-12-31 23:59:59' { counts: 365 issues: [ {issue}, {issue}, {issue}, {issue}, {issue} ] }
-
Run MyGHub Server
$ uvicorn myghub.server.server:app --port 8000 --host 0.0.0.0 --reload INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) INFO: Started reloader process [6] using watchgod INFO: Started server process [8] INFO: Waiting for application startup. INFO: Application startup complete.
-
Send HTTP Requst for MyGHub Server
curl -i --location \ --header "Content-Type: application/json" \ --request POST \ --data '{"repository": "mobigen/IRIS", "search_started_at": "2021-01-01 00:00:00","search_finished_at": "2021-01-31 23:59:59", "state": "all"}' \ http://SERVER/issues/