{"id":44019788,"url":"https://github.com/stuartmcgill/sumo-reporter","last_synced_at":"2026-02-07T16:08:52.792Z","repository":{"id":149079987,"uuid":"621244249","full_name":"stuartmcgill/sumo-reporter","owner":"stuartmcgill","description":"Uses the Sumo API to produce formatted reports","archived":false,"fork":false,"pushed_at":"2026-02-04T20:27:07.000Z","size":470,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-05T08:34:31.489Z","etag":null,"topics":["api","reports","sumo","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuartmcgill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-30T09:22:02.000Z","updated_at":"2026-02-04T20:27:10.000Z","dependencies_parsed_at":"2023-06-30T04:31:41.156Z","dependency_job_id":"7574fefe-fd83-46f3-a54c-3232e3476144","html_url":"https://github.com/stuartmcgill/sumo-reporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stuartmcgill/sumo-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartmcgill%2Fsumo-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartmcgill%2Fsumo-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartmcgill%2Fsumo-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartmcgill%2Fsumo-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuartmcgill","download_url":"https://codeload.github.com/stuartmcgill/sumo-reporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartmcgill%2Fsumo-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29199519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","reports","sumo","symfony"],"created_at":"2026-02-07T16:08:52.316Z","updated_at":"2026-02-07T16:08:52.788Z","avatar_url":"https://github.com/stuartmcgill.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sumo reporter\n\n![Code coverage badge](https://github.com/stuartmcgill/sumo-reporter/blob/image-data/coverage.svg)\n\nThis console application uses the [Sumo API](https://sumo-api.com/) to produce formatted reports.\n\nThe following reports are provided:\n\n- Ordered wrestler 'streaks' i.e. how many bouts wrestlers have won (or lost) in\na row, which may of course stretch across successive bashos\n- Makuuchi consecutive match tracker i.e. how many successive bouts (regardless of win or loss) each\nwrestler has fought\n\n# Dependencies\n\n_Sumo reporter_ is a [Symfony Console](https://symfony.com/doc/current/components/console.html) app\nand uses [Laminas Service Manager](https://docs.laminas.dev/laminas-servicemanager/) for dependency\ninjection (in particular the [Reflection-based Abstract Factory](https://docs.laminas.dev/laminas-servicemanager/reflection-abstract-factory/)).\n\n# Usage\n\n## Streaks\n\n```\nsrc/run.php report:streaks [YYYY-MM] [output.csv]\n```\n\nIf a date (e.g. 2023-03) is not supplied then the streaks will be calculated starting from the most recent (or\nin-progress) basho.\n\nThis report is used to maintain the Sumo Forum [winning and losing streaks](http://www.sumoforum.net/forums/topic/42758-winning-and-losing-streaks/) thread.\n\n### Sample output\n\n```\n src/run.php report:streaks\n\nDownloading wrestler streaks...\n===============================\n\nWinning\n-------\n\n+---------------+--------------------+---------+-------------+--------------+\n| Name          | Rank               | Type    | Streak size | Unblemished? |\n+---------------+--------------------+---------+-------------+--------------+\n| Toshunryu     | Sandanme 24 West   | Winning | 9           |              |\n| Kiribayama    | Sekiwake 2 East    | Winning | 8           |              |\n| Ichinojo      | Juryo 3 East       | Winning | 8           |              |\n| Kiyonoumi     | Sandanme 80 East   | Winning | 8           |              |\n| Ryuo          | Makushita 26 East  | Winning | 7           |              |\n| Suguro        | Jonidan 60 West    | Winning | 7           |              |\n| Asahakuryu    | Jonokuchi 11 West  | Winning | 7           | Yes          |\n| Takarafuji    | Maegashira 12 West | Winning | 6           |              |\n| Takahashi     | Makushita 33 West  | Winning | 6           |              |\n| Fukai         | Makushita 40 West  | Winning | 6           |              |\n| Kazenoumi     | Jonidan 32 East    | Winning | 6           |              |\n| Kitanosho     | Jonidan 100 East   | Winning | 6           |              |\n| Nabatame      | Makushita 24 West  | Winning | 5           |              |\n| Narutaki      | Makushita 29 East  | Winning | 5           |              |\n| Tokisoma      | Sandanme 29 West   | Winning | 5           |              |\n| Marusho       | Sandanme 42 East   | Winning | 5           |              |\n| Kyokutaisei   | Sandanme 55 West   | Winning | 5           |              |\n```\n\n## Makuuchi consecutive match tracker\n\n``` \nsrc/run.php report:consecutivematchtracker [YYYY-MM] [output.csv] [--covid-breaks-run]\n```\n\nIf a date (e.g. 2024-01) is not supplied then the tracker will be started from the most recent basho.\n\nIf the `--covid-breaks-run` option is set then COVID-enforced kyujos will cause the run to end. The\ndefault behaviour (i.e. with no option set) is to ignore COVID-enforced kyujos and allow the run to\ncontinue.\n\nThis report is used to maintain the Sumo Forum [Makuuchi consecutive match tracker](http://www.sumoforum.net/forums/topic/36454-makuuchi-consecutive-match-tracker/?page=3) thread.\n\n### Sample output\n\n```\n src/run.php report:consecutivematchtracker 2024-01\n\nCalculating consecutive matches...\n==================================\n\nConsecutive matches in Makuuchi\n-------------------------------\n\n+--------------+-------------------+---------+--------------------+\n| Name         | Number of matches | Since   | Current rank       |\n+--------------+-------------------+---------+--------------------+\n| Takarafuji   | 990               | 2013-01 | Juryo 1 West       |\n| Tamawashi    | 942               | 2013-07 | Maegashira 7 West  |\n| Daieisho     | 612               | 2017-03 | Sekiwake 1 East    |\n| Mitakeumi    | 431               | 2019-01 | Maegashira 10 West |\n| Meisei       | 315               | 2020-09 | Maegashira 2 West  |\n| Tobizaru     | 312               | 2020-09 | Maegashira 4 East  |\n| Shodai       | 285               | 2021-01 | Maegashira 10 East |\n| Sadanoumi    | 210               | 2021-11 | Maegashira 11 West |\n| Kotonowaka   | 205               | 2021-11 | Ozeki 2 West       |\n...\n+--------------+-------------------+---------+--------------------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartmcgill%2Fsumo-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuartmcgill%2Fsumo-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartmcgill%2Fsumo-reporter/lists"}