{"id":16406783,"url":"https://github.com/terror/kattis-api","last_synced_at":"2025-10-26T17:31:45.124Z","repository":{"id":62573781,"uuid":"320695799","full_name":"terror/kattis-api","owner":"terror","description":"A python wrapper for the Kattis API","archived":false,"fork":false,"pushed_at":"2023-06-24T03:42:04.000Z","size":61,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T16:54:02.671Z","etag":null,"topics":["kattis","kattis-api","python-wrapper"],"latest_commit_sha":null,"homepage":"","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/terror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","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-12-11T22:16:19.000Z","updated_at":"2023-11-27T04:55:58.000Z","dependencies_parsed_at":"2022-11-03T18:30:39.461Z","dependency_job_id":null,"html_url":"https://github.com/terror/kattis-api","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"1959ba0ed3b72272d8237ad1f7dd07d48b7acc9d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fkattis-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fkattis-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fkattis-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fkattis-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terror","download_url":"https://codeload.github.com/terror/kattis-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238375282,"owners_count":19461575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["kattis","kattis-api","python-wrapper"],"created_at":"2024-10-11T06:10:58.014Z","updated_at":"2025-10-26T17:31:44.818Z","avatar_url":"https://github.com/terror.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Kattis API\n\n[![build](https://travis-ci.com/terror/kattis-api.svg?token=ecmzsnHcAnyWvGJ3zTwV\u0026branch=master)](https://travis-ci.com/terror/kattis-api)\n\nA python wrapper for the non-existent [Kattis](https://open.kattis.com/) API.\n\n## Usage\n\nYou can simply install the package using pip\n\n```bash\n$ pip install kattis\n```\n\n## Getting Started\nimport the kattis module\n```python\nimport kattis\n```\n\n## Examples\n\nSome examples to get started.\n\n### Authentication\n\nYou can authenticate a Kattis user by calling `kattis.auth`, this will\nreturn a KattisUser object with a few callable methods.\n\n```python\nuser = kattis.auth('username', 'password')\n```\n\n### User Methods\n\nMethods that are callable on a KattisUser object.\n\n`user.problems(pages) -\u003e dict`: Fetches solved user problems\n\n`user.stats() -\u003e dict`: Fetches relevant user statistics\n\n`user.data() -\u003e dict`: Combines problems and statistics\n\n```python\nuser = kattis.auth('username', 'password')\n\nproblems = user.problems(1)\nstats = user.stats()\ninfo = user.data()\n```\n\n### Problems\n\nYou can fetch kattis problems by ID or by full pages\n\n`kattis.problem(id) -\u003e dict`: Fetches problem information for a single problem\n\n`kattis.problems(pages) -\u003e list[dict]` Fetches problem information across specified pages\n\n\n```python\nproblem = kattis.problem('2048') # Fetches information for problem with ID '2048'\nproblems = kattis.problems(2) # Fetches all problems on first 2 pages\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fkattis-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterror%2Fkattis-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fkattis-api/lists"}