Skip to content

Releases: takos22/codingame

codingame 1.1.0

01 Nov 22:48
3d17020
Compare
Choose a tag to compare

Version 1.1.0

Changelog

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io

codingame 1.0.1

12 Jul 20:09
e178242
Compare
Choose a tag to compare

Version 1.0.1

Changelog

  • Add CodinGamer.profile_url

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io

codingame 1.0

11 Jul 22:32
d923bca
Compare
Choose a tag to compare

Version 1.0

Changelog

  • Add support for asynchronous client with Client(is_async=True), see the docs.

  • Add support for context managers:

    # synchronous
    with Client() as client:
        client.get_global_leaderboard()
    
    # asynchronous
    async with Client(is_async=True) as client:
        await client.get_global_leaderboard()
  • Remove properties like CodinGamer.followers in favor of methods like CodinGamer.get_followers to better differentiate API calls and to make it compatible with async API calls. Here's a list of all of the changed ones:

    • Client.language_ids -> Client.get_language_ids
    • Client.unseen_notifications -> Client.get_unseen_notifications
    • CodinGamer.followers -> CodinGamer.get_followers
    • CodinGamer.followers_ids -> CodinGamer.get_followers_ids
    • CodinGamer.following -> CodinGamer.get_followed
    • CodinGamer.following_ids -> CodinGamer.get_followed_ids
    • CodinGamer.clash_of_code_rank ->
      CodinGamer.get_clash_of_code_rank
  • Add more exceptions: LoginError regroups all the exceptions related to login: LoginRequired, EmailRequired, MalformedEmail, PasswordRequired, EmailNotLinked and IncorrectPassword. And NotFound regroups CodinGamerNotFound, ClashOfCodeNotFound, ChallengeNotFound and PuzzleNotFound.

  • Make all attributes of CodinGame models read-only.

  • Add ChallengeLeaderboard.has_leagues and PuzzleLeaderboard.has_leagues.

  • Add Notification._raw.

  • Change ClashOfCode.time_before_start and ClashOfCode.time_before_end from float to datetime.timedelta.

  • Remove argument type validation, not my fault if you can't read the docs.

  • Rewrite the way the client works to implement a class to manage the connection state and separate the Client that the user uses from the HTTP client that interacts with the API.

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io

codingame 0.4

19 Jun 21:36
b685324
Compare
Choose a tag to compare

Version 0.4

Changelog

  • Add support for leaderboards in Client.get_global_leaderboard, Client.get_challenge_leaderboard and Client.get_puzzle_leaderboard. See docs.
  • Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html

codingame v0.3.5

10 Dec 22:42
Compare
Choose a tag to compare

Version 0.3.5

Changelog

  • Add support for ids in Client.get_codingamer.

    import codingame
    client = codingame.Client()
    codingamer = client.get_codingamer(3877165)
    print(codingamer.pseudo)
  • Add CodinGamer.followers_ids and CodinGamer.following_ids to get information without logging in.

    import codingame
    client = codingame.Client()
    codingamer = client.get_codingamer(3877165)
    print(codingamer.followers_ids)
    print(codingamer.following_ids)
  • Add CodinGamer.clash_of_code_rank to get the CodinGamer’s ranking in Clash of Codes.

    import codingame
    client = codingame.Client()
    codingamer = client.get_codingamer(3877165)
    print(codingamer.clash_of_code_rank)
  • Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html

codingame v0.3.4

01 Dec 19:03
af9f008
Compare
Choose a tag to compare

Add support for python 3.9

codingame v0.3.3

06 Nov 20:55
Compare
Choose a tag to compare

Version 0.3.3

Changelog

Add support for usernames in Client.get_codingamer.

import codingame
client = codingame.Client()
codingamer= client.get_codingamer("takos")
print(codingamer.pseudo)

Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html

codingame v0.3.2

23 Sep 19:05
Compare
Choose a tag to compare

Version 0.3.2

Changelog

Add Client.get_pending_clash_of_code that returns a pending public Clash of Code.

import codingame
client = codingame.Client()
clash_of_code = client.get_pending_clash_of_code()
print(clash_of_code.join_url)

Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html

codingame v0.3.1

20 Sep 17:04
Compare
Choose a tag to compare

Version 0.3.1

Changelog

Add Client.notifications that returns a generator of all the notifications.
Note: you need to login for the notifications.

import codingame
client = codingame.Client("email", "password")
notifications = [n for n in client.notifications]

Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html

codingame v0.3.0

20 Sep 15:24
Compare
Choose a tag to compare

Version 0.3.0

Changelog

Add login with Client:

import codingame
# like this
client = codingame.Client()
client.login("email", "password")
# or like this
client = codingame.Client("email", "password")
# then you can get the loged in user with like this
if client.logged_in:
    user = client.codingamer

Add list of language ids accessible with Client().language_ids
Add CodinGamer.followers and CodinGamer.following for the currently logged in CodinGamer
Bug fixes

Update

Update the module by doing pip install codingame --upgrade

Links

PyPi: https://pypi.org/project/codingame
Docs: https://codingame.readthedocs.io/en/latest/index.html