VadVergasov's blog

By VadVergasov, history, 5 years ago, translation, In English

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.

  • Vote: I like it
  • +43
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Thanks, very useful thing!!!

»
4 years ago, # |
  Vote: I like it +3 Vote: I do not like it

thanks for sharing this . i also wanted to make this in python but i was unable to do it. thanks again

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hello, thanks for this!

Have you implemented all the methods?

  • »
    »
    4 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Yes, I've implemented all the methods, that are described on the page with API description.

    You're welcome!

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks a lot!

»
19 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Thank you, my friend, for being a true hero