{"id":41129102,"url":"https://github.com/moonburnt/pykagapi","last_synced_at":"2026-01-22T18:19:32.870Z","repository":{"id":62581208,"uuid":"288606186","full_name":"moonburnt/pykagapi","owner":"moonburnt","description":"Python wrapper for King Arthur's Gold-related APIs","archived":false,"fork":false,"pushed_at":"2023-10-15T20:51:55.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T08:51:59.410Z","etag":null,"topics":["api","king-arthurs-gold","library","python","wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pykagapi/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moonburnt.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}},"created_at":"2020-08-19T01:47:04.000Z","updated_at":"2023-10-16T03:02:02.000Z","dependencies_parsed_at":"2022-11-03T21:20:58.367Z","dependency_job_id":null,"html_url":"https://github.com/moonburnt/pykagapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/moonburnt/pykagapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonburnt%2Fpykagapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonburnt%2Fpykagapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonburnt%2Fpykagapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonburnt%2Fpykagapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonburnt","download_url":"https://codeload.github.com/moonburnt/pykagapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonburnt%2Fpykagapi/sbom","scorecard":{"id":659346,"data":{"date":"2025-08-11","repo":{"name":"github.com/moonburnt/pykagapi","commit":"2939b3b2707bc0f6ef9c40ed4910992194dcc3ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-24 / GHSA-5h86-8mv2-jq9f","Warn: Project is vulnerable to: GHSA-5m98-qgg9-wh84","Warn: Project is vulnerable to: GHSA-7gpw-8wmc-pm8g","Warn: Project is vulnerable to: GHSA-8495-4g3g-x7pr","Warn: Project is vulnerable to: PYSEC-2024-26 / GHSA-8qpw-xqxj-h4r2","Warn: Project is vulnerable to: GHSA-9548-qrrj-x5pj","Warn: Project is vulnerable to: PYSEC-2023-250 / GHSA-q3qx-c6g2-7pw2","Warn: Project is vulnerable to: PYSEC-2023-251 / GHSA-qvrw-v9rv-5rjx","Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T15:37:53.654Z","repository_id":62581208,"created_at":"2025-08-21T15:37:53.654Z","updated_at":"2025-08-21T15:37:53.654Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28667923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","king-arthurs-gold","library","python","wrapper"],"created_at":"2026-01-22T18:19:32.051Z","updated_at":"2026-01-22T18:19:32.850Z","avatar_url":"https://github.com/moonburnt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pykagapi\n\n## Description:\n\n*pykagapi* - a python wrapper for King Arthurs Gold-related APIs ([KAG API v1](https://api.kag2d.com/v1) and [KAG Stats API](https://kagstats.com/api)).\nUse it as you please, feel free to contribute!\n\n## Dependencies:\n\n- python 3.10+\n- requests\n- aiohttp (for async client)\n\n## Installation:\n\n### From source:\n\n- Install [poetry](https://python-poetry.org/docs/#installation)\n- Clone this repo: `git clone https://github.com/moonburnt/pykagapi.git`\n- Enter project's directory: `cd pykagapi`\n- `poetry install`\n\n### From pypi:\n\n- `pip install pykagapi`\n\n## Example Usage:\n\n### Getting general api info:\n\n```python\nfrom pykagapi import kag\n\nwith kag.get_client() as c:\n    print(c.get_api_info())\n```\n\n### Getting general api info asynchroniously:\n\n```python\nfrom pykagapi import kag\nimport asyncio\n\nasync def main():\n    async with kag.get_async_client() as c:\n        print(await c.get_api_info())\n\nasyncio.run(main())\n```\n\n### Getting amount of currently active servers:\n\n```python\nfrom pykagapi import kag\n\nwith kag.get_client() as c:\n    servers_amount = len(kag.extra.get_active_servers()[\"serverList\"])\n\nprint(f\"There are currently {servers_amount} servers with players!\")\n```\n\nExample output:\n`There are currently 6 servers with players!`\n\n\n## Currently unimplemented api calls:\n\n### KAG API:\n\n- Everything that isn't \"get\" requests, because Im just a regular player and dont have ability to upload or remove anything\n\n### KAGSTATS API:\n\n- `https://kagstats.com/api/players/{id}/refresh`, because it doesnt seem to do anything\n- Whatever I didnt notice while casually reading [api's source codes](https://github.com/Harrison-Miller/kagstats/tree/master/api)\n\n\n## TODO:\n\n- Support for non-GET requests\n- Automated tests\n- Support for \"limit\"/\"start\" in list views of kagstats api\n- Make async client optional\n\n## LICENSE:\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonburnt%2Fpykagapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonburnt%2Fpykagapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonburnt%2Fpykagapi/lists"}