{"id":18382194,"url":"https://github.com/vadvergasov/codeforcesapipy","last_synced_at":"2026-03-17T23:06:24.529Z","repository":{"id":37783654,"uuid":"243187529","full_name":"VadVergasov/CodeforcesApiPy","owner":"VadVergasov","description":"Implementation of https://codeforces.com API","archived":false,"fork":false,"pushed_at":"2024-10-04T22:37:49.000Z","size":183,"stargazers_count":27,"open_issues_count":11,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T13:06:22.431Z","etag":null,"topics":["codeforces","codeforces-api","github-actions","github-page","github-wiki","module","python","python3","twine","wiki"],"latest_commit_sha":null,"homepage":"","language":"Python","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/VadVergasov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2020-02-26T06:40:16.000Z","updated_at":"2024-11-13T14:10:14.000Z","dependencies_parsed_at":"2025-01-02T09:11:39.950Z","dependency_job_id":"964f8731-5bb1-4f22-a93b-428519240929","html_url":"https://github.com/VadVergasov/CodeforcesApiPy","commit_stats":{"total_commits":69,"total_committers":6,"mean_commits":11.5,"dds":"0.13043478260869568","last_synced_commit":"2a5f8e81efe8f9229c7f4fd797d0e53b240d27fb"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VadVergasov%2FCodeforcesApiPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VadVergasov%2FCodeforcesApiPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VadVergasov%2FCodeforcesApiPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VadVergasov%2FCodeforcesApiPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VadVergasov","download_url":"https://codeload.github.com/VadVergasov/CodeforcesApiPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739950,"owners_count":21635950,"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":["codeforces","codeforces-api","github-actions","github-page","github-wiki","module","python","python3","twine","wiki"],"created_at":"2024-11-06T01:03:38.906Z","updated_at":"2026-03-17T23:06:24.492Z","avatar_url":"https://github.com/VadVergasov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Codeforces API\n[![License](https://img.shields.io/github/license/VadVergasov/CodeforcesApiPy)](https://github.com/VadVergasov/CodeforcesApiPy/blob/master/LICENSE)\n[![Stars](https://img.shields.io/github/stars/VadVergasov/CodeforcesApiPy)](https://github.com/VadVergasov/CodeforcesApiPy/stargazers)\n[![Forks](https://img.shields.io/github/forks/VadVergasov/CodeforcesApiPy)](https://github.com/VadVergasov/CodeforcesApiPy/network/members)\n[![Issues](https://img.shields.io/github/issues/VadVergasov/CodeforcesApiPy)](https://github.com/VadVergasov/CodeforcesApiPy/issues)\n[![Publish to PyPI and create Release.](https://github.com/VadVergasov/CodeforcesApiPy/actions/workflows/publish.yml/badge.svg?branch=master)](https://github.com/VadVergasov/CodeforcesApiPy/actions/workflows/publish.yml)\n[![Generate wiki](https://github.com/VadVergasov/CodeforcesApiPy/workflows/Generate%20wiki/badge.svg?branch=master)](https://github.com/VadVergasov/CodeforcesApiPy/wiki)\n[![Downloads](https://static.pepy.tech/personalized-badge/codeforcesapipy?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=blue\u0026left_text=Total%20downloads)](https://pepy.tech/project/codeforcesapipy)\n![Codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)\n==========\n\nInstalling\n----------\n\nWith pip:\n\n```bash\npip install CodeforcesApiPy\n```\n\nFrom the repository:\n\n```bash\ngit clone https://github.com/VadVergasov/CodeforcesApiPy.git\ncd codeforcesapipy\npython3 setup.py install\n```\n\nUsing\n---------\n\n```python\nimport codeforces_api\n\ncf_api = codeforces_api.CodeforcesApi(api_key, secret) # Authorized access to api.\nanonim_cf_api = codeforces_api.CodeforcesApi() # Unauthorized access to api.\n\nparser = codeforces_api.CodeforcesParser() # Create parser.\n```\n\nTypes\n-------\n\nAll types are defined in types.py. They are all completely in line with the [Codeforces API's definition of the types](https://codeforces.com/apiHelp/objects)\n\nMethods\n-------\n\nAll [API methods](https://codeforces.com/apiHelp/methods) are located in the CodeforcesAPI class. They are renamed to follow common Python naming conventions. E.g. `contest.hacks` is renamed to `contest_hacks` and `user.actions` to `user_actions`.\n\nTransferring to 2 version\n--------\n\nIn the second version, all objects are represented as a class, so if you want to get a handle of the user you need to do like this: user.handle. You can read about all fields on [Codeforces API objects](https://codeforces.com/apiHelp/objects).\n\nWiki\n--------\n\nHere is link to the [wiki](https://github.com/VadVergasov/CodeforcesApiPy/wiki) for more details.\n\nExamples\n---------\n\nHere are some examples of using this library:\n\n* [A2OJ](https://github.com/subodhk01/a2oj) by subodhk01 - allows you to look at your ladder progress.\n* [cf_utils](https://github.com/xennygrimmato/cf_utils) by xennygrimmato - allows you to find common solved problems.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadvergasov%2Fcodeforcesapipy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvadvergasov%2Fcodeforcesapipy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadvergasov%2Fcodeforcesapipy/lists"}