CodeforcesApiPy 2.0.12
pip install CodeforcesApiPy
Released:
Implementation of codeforces.com API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v3 (GPLv3) (GPLv3)
- Author: VadVergasov
- Tags codeforces, api, python
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
Project description
Codeforces API

Installing
With pip:
pip install CodeforcesApiPy
From the repository:
git clone https://github.com/VadVergasov/CodeforcesApiPy.git
cd codeforcesapipy
python3 setup.py install
Using
import codeforces_api
cf_api = codeforces_api.CodeforcesApi(api_key, secret) # Authorized access to api.
anonim_cf_api = codeforces_api.CodeforcesApi() # Unauthorized access to api.
parser = codeforces_api.CodeforcesParser() # Create parser.
Types
All types are defined in types.py. They are all completely in line with the Codeforces API's definition of the types
Methods
All API 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
.
Transferring to 2 version
In 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.
Wiki
Here is link to the wiki for more details.
Examples
Here are some examples of using this library:
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU General Public License v3 (GPLv3) (GPLv3)
- Author: VadVergasov
- Tags codeforces, api, python
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file codeforcesapipy-2.0.12.tar.gz
.
File metadata
- Download URL: codeforcesapipy-2.0.12.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3ec52906864b6f4673ddd0b783ec758b69e1b814143455f5e4ab584570c0b9 |
|
MD5 | 16de911980a8e704d319b4fb30bffd28 |
|
BLAKE2b-256 | f288497f9b7dfea4b71cfd4e2adba500c1e7f8f13e85eb2644285a417bbd58f2 |
File details
Details for the file CodeforcesApiPy-2.0.12-py2.py3-none-any.whl
.
File metadata
- Download URL: CodeforcesApiPy-2.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f5e0bc67b7b70b8fe211a52b961e1da06ec99f53b2e232f5b1dad84dedc08b7 |
|
MD5 | 60044a40da6ae2da855aea65d9434233 |
|
BLAKE2b-256 | b521a4ac6763681b36495ef6a6ea1473be906803e361dfb00d3f812ce546e0f8 |