Releases: takos22/codingame
codingame 1.1.0
Version 1.1.0
Changelog
- Change login to cookie authentication, see Login and
Client.login
.
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
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
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 likeCodinGamer.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
andIncorrectPassword
. AndNotFound
regroupsCodinGamerNotFound
,ClashOfCodeNotFound
,ChallengeNotFound
andPuzzleNotFound
. -
Make all attributes of CodinGame models read-only.
-
Add
ChallengeLeaderboard.has_leagues
andPuzzleLeaderboard.has_leagues
. -
Add
Notification._raw
. -
Change
ClashOfCode.time_before_start
andClashOfCode.time_before_end
fromfloat
todatetime.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
Version 0.4
Changelog
- Add support for leaderboards in
Client.get_global_leaderboard
,Client.get_challenge_leaderboard
andClient.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
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
andCodinGamer.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
Add support for python 3.9
codingame v0.3.3
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
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
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
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