Codeforces API python

Правка en2, от VadVergasov, 2020-02-26 21:18:59

Recently, it became necessary to use the Codeforces API using Python. So I decided to write my own library.

This module implements all the methods described in the documentation API Codeforces. The use, in my opinion, is quite logical:

import codeforces_api
cf_api = codeforces_api.CodeforcesApi (api_key, secret) # Authorized access.
anonim_cf_api = codeforces_api.CodeforcesApi () # Anonymous access.

Will return a response if the response from the server return status "OK".

To install via pip you need to do:

pip install CodeforcesApiPy

I believe, that this module will be helpful for someone.

I will be glad to any suggestions for improvement.

Теги #api, api, #codeforces, #python, #python 3, python 3

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский VadVergasov 2020-02-26 21:18:59 0 (published)
ru2 Русский VadVergasov 2020-02-26 21:17:52 0 (опубликовано)
en1 Английский VadVergasov 2020-02-26 21:14:54 802 Initial revision for English translation (saved to drafts)
ru1 Русский VadVergasov 2020-02-26 19:48:01 942 Первая редакция (сохранено в черновиках)