Changelog
To be released
Fixed
wbtime
andbtime
for all endpoints returning aGameState
.Added
sheet
optional parameter toTournaments.stream_results
, and fix returned typed dict.Added
studies.import_pgn
to import PGN to studyAdded
tv.stream_current_game_of_channel
to stream the current TV game of a channel
Thanks to @nicvagn, @tors42, @fitztrev and @trevorbayless for their contributions to this release.
v0.13.2 (2023-12-04)
Added
client.analysis.get_cloud_evaluation
to get cloud evaluationsAdded
client.tournaments.export_swiss_trf
to export swiss results as TRFUpdated
client.broadcasts.create
andclient.broadcasts.update
to reflect changes in the Lichess API * Removedofficial
parameter (could only be used by Lichess staff anyways) * Addedtier
parameter (can only be used by Lichess staff) * Addedauto_leaderboard
parameter to control whether an automatically calculated leaderboard should be displayed
Thanks to @Anupya and @AAArmstark for their contributions to this release.
v0.13.1 (2023-11-02)
Added:
client.challenges.get_mine client.challenges.cancel client.challenges.start_clocks client.challenges.add_time_to_opponent_clock client.challenges.create_tokens_for_multiple_users client.explorer.get_otb_master_game client.external_engine.get client.external_engine.get_by_id client.external_engine.create client.external_engine.update client.external_engine.delete client.puzzles.create_race client.tournaments.edit_swiss client.tournaments.get_swiss client.tournaments.get_team_standings client.tournaments.join_arena client.tournaments.join_swiss client.tournaments.schedule_swiss_next_round client.tournaments.stream_swiss_results client.tournaments.terminate_arena client.tournaments.terminate_swiss client.tournaments.update_team_battle client.tournaments.withdraw_arena client.tournaments.withdraw_swiss client.users.get_by_autocomplete
Thanks to @handsamtw and @Anupya for their contributions to this release.
v0.13 (2023-09-29)
Correctly forward that the library is typed (now following PEP-0561)
Added broadcast.stream_round endpoint
Improve type safety, remove enum.py and use typed dicts instead, this is a breaking change if you relied on these enums
Thanks to @devjiwonchoi, @Virinas-code, @icp1994, and @rpesche for their contributions to this release.
v0.12.10 (2023-09-2)
Added
client.opening_explorer.get_masters_games
to request opening explorer data for a given position based on master gamesAdded
client.opening_explorer.get_player_games
to request opening explorer data for a given position based on Lichess games of a specific playerAdded
client.opening_explorer.stream_player_games
to request opening explorer data for a given position based on Lichess games of a specific player and get intermediate results as statistics are calculated
Thanks to @rpesche for their contributions to this release.
v0.12.9 (2023-09-2)
Added
client.bulk_pairings
to create and manage bulk pairings *client.bulk_pairings.get_upcoming
to get upcoming bulk pairings you created *client.bulk_pairings.create
to create a bulk pairing *client.bulk_pairings.start_clocks
to start the clocks of a bulk pairing *client.bulk_pairings.cancel
to cancel a bulk pairingAdded better return types for
client.account.get
andclient.account.get_preferences
Thanks to @Virinas-code for their contributions to this release.
v0.12.8 (2023-07-25)
Added
client.opening_explorer.get_lichess_games
to request opening explorer data for a given position based on Lichess games
Thanks to @rpesche for their contributions to this release.
v0.12.7 (2023-07-15)
Added
client.teams.get_join_requests
to get the join requests of one of your teamsAdded
client.teams.accept_join_request
to accept a join request of one of your teams
Thanks to @zen1405 for their contributions to this release.
v0.12.6 (2023-06-18)
Added
client.puzzles.get_daily
to get the current daily puzzleAdded
client.puzzles.get_puzzle_activity
to get the authenticated user’s puzzle activity/historyThis was already accessibly as
client.users.get_puzzle_activity
and remains there for backwards compatibility but this usage is deprecated and will be removed in the next breaking version.
Added
client.puzzles.get_puzzle_dashboard
to get the authenticated user’s puzzle dashboardAdded
client.puzzles.get_storm_dashboard
to get the storm dashboard of a userAdded
client.tablebase.look_up
to look up tablebase resultsAdded
client.tablebase.standard
to look up tablebase resultsAdded
client.tablebase.atomic
to look up atomic chess tablebase resultsAdded
client.tablebase.antichess
to look up antichess tablebase resultsAll streaming methods are now generators which means they only start the request once the iteration starts. For most usages, this doesn’t make any difference.
Thanks to @icp, @obazin, and @Virinas-code for their contributions to this release.
v0.12.5 (2023-06-15)
Added
client.broadcast.get_official
to get official BroadcastsAdded
client.broadcast.get_round_pgns
to get the PGN of all games of a broadcast roundAdded
client.broadcast.get_pgns
to get the PGN of all games of a broadcastAdded
client.puzzles.get
to get a puzzle by its id
Thanks to @obazin and @thegrapesoda for their contributions to this release.
v0.12.4 (2023-05-21)
Fixed
client.users.get_puzzle_activity
returning 404 all the time.
Thanks to @AnonJohn for the report.
v0.12.3 (2023-05-16)
Fixed response handling of several endpoints related to datetime parsing for python older than 3.11
Thanks to @aro5000 for the report and @icp1994 for the troubleshooting.
v0.12.2 (2023-05-14)
Fixed response handling of several endpoints related to datetime parsing
Thanks to @icp1994 for their contributions to this release!
v0.12.1 (2023-05-13)
Added
client.bots.get_online_bots
to get the list of online botsAdjusted study export endpoint URLs to use the
/api
prefix for consistency
Thanks to @kalpgarg and @icp1994 for their contributions to this release!
v0.12.0 (2023-05-07)
First release done by Lichess incorporating the changes from
berserk-downstream
(v0.11.0)Added type hints
Removed deprecated functions
Added
client.board.get_game_chat
to get the chat of a gameAdded
client.board.claim_victory
to claim victory in a game (after the opponent left the game)Added
client.board.go_berserk
to go berserk in a tournament gameexport_arena_games
andexport_swiss_games
now stream the result (i.e. return an iterator over the games)
Thanks to @trevorbayless and @icp1994 for their contributions to this release!
v0.11.0 (2021-03-18)
Added
Tournaments.create_arena
for creating arena tournamentsAdded
Tournaments.create_swiss
for creating swiss tournamentsAdded
Tournaments.export_arena_games
for exporting arena gamesAdded
Tournaments.export_swiss_games
for exporting swiss gamesAdded
Tournaments.arena_by_team
for getting arena tournaments by teamAdded
Tournaments.swiss_by_team
for getting swiss tournaments by teamAdded
Tournaments.tournaments_by_user
for getting tournaments by userDeprecated
Tournaments.create
andTournaments.export_games
Uploaded fork to pypi
Minor fixes for docstrings
Minor updates to README, AUTHORS
v0.10.0 (2020-04-26)
Added
Challenge.create_ai
for creating an AI challengeAdded
Challenge.create_open
for creating an open challengeAdded
Challenge.create_with_accept
auto-acceptance of challenges using OAuth tokenBugfix for passing initial board positions in FEN for challenges
Minor fixes for docstrings
v0.9.0 (2020-04-14)
Added remaining
Board
endpoints: seek, handle_draw_offer, offer_draw, accept_draw, and decline_drawMultiple doc updates/fixes
Added codecov reporting
v0.8.0 (2020-03-08)
Added new
Board
client: stream_incoming_events, stream_game_state, make_move, post_message, abort_game, and resign_game
v0.7.0 (2020-01-26)
Added simuls
Added studies export and export chapter
Added tournament results, games export, and list by creator
Added user followers, users following, rating history, and puzzle activity
Added new
Teams
client: join, get members, kick member, and leaveUpdated documentation, including new docs for some useful utils
Fixed bugs in
Tournaments.export_games
Deprecated
Users.get_by_team
- useTeams.get_members
instead
v0.6.1 (2020-01-20)
Added py37 to the travis build
Updated development status classifier to 4 - Beta
Fixed py36 issue preventing successful build
Made updates to the Makefile
v0.6.0 (2020-01-20)
Added logging to the
berserk.session
moduleFixed exception message when no cause
Fixed bug in
Broadcasts.push_pgn_update
Updated documentation and tweak the theme
v0.5.0 (2020-01-20)
Added
ResponseError
for 4xx and 5xx responses with status code, reason, and causeAdded
ApiError
for all other request errorsFixed test case broken by 0.4.0 release
Put all utils code under test
v0.4.0 (2020-01-19)
Added support for the broadcast endpoints
Added a utility for easily converting API objects into update params
Fixe multiple bugs with the tournament create endpoint
Improved the reusability of some conversion utilities
Improved many docstrings in the client classes
v0.3.2 (2020-01-04)
Fixed bug where options not passed for challenge creation
Converted requirements from pinned to sematically compatible
Bumped all developer dependencies
Use pytest instead of the older py.test
Use py37 in tox
v0.3.1 (2018-12-23)
Converted datetime string in tournament creation response into datetime object
v0.3.0 (2018-12-23)
Converted all timestamps to datetime in all responses
Provided support for challenging other players to a game
v0.2.1 (2018-12-08)
Bump edrequests dependency to >-2.20.0 (CVE-2018-18074)
v0.2.0 (2018-12-08)
Added position and start_date params to Tournament.create
Added Position enum
v0.1.2 (2018-07-14)
Fixed an asine bug in the docs
v0.1.1 (2018-07-14)
Added tests for session and formats modules
Fixed mispelled PgnHandler class (!)
Fixed issue with trailing whitespace when splitting multiple PGN texts
Fixed the usage overview in the README
Fixed the versions for travis-ci
Made it easier to test the JsonHandler class
Salted the bumpversion config to taste
v0.1.0 (2018-07-10)
First release on PyPI.