Package: berserk-downstream
This is a downstream branch created to continually maintain berserk.
Original repository:https://github.com/rhgrant10/berserkPython client for theLichess API.Free software: GNU General Public License v3Documentation:https://berserk.readthedocs.io.InstallMake sure berserk is uninstalled before installingpip installberserk-downstreamFeatureshandles JSON and PGN formats at user’s discretiontoken auth sessioneasy integration with OAuth2automatically converts time values to datetimesUsageYou can use anyrequests.Session-like object as a session, including those
fromrequests_oauth. A simple token session is included, as shown below:importberserksession=berserk.TokenSession(API_TOKEN)client=berserk.Client(session=session)Most if not all of the API is available:client.account.getclient.account.get_emailclient.account.get_preferencesclient.account.get_kid_modeclient.account.set_kid_modeclient.account.upgrade_to_botclient.users.get_puzzle_activityclient.users.get_realtime_statusesclient.users.get_all_top_10client.users.get_leaderboardclient.users.get_public_dataclient.users.get_activity_feedclient.users.get_by_idclient.users.get_by_teamclient.users.get_live_streamersclient.users.get_rating_historyclient.users.get_crosstableclient.users.get_user_performanceclient.relations.get_users_followedclient.relations.followclient.relations.unfollowclient.teams.get_membersclient.teams.joinclient.teams.leaveclient.teams.kick_memberclient.games.exportclient.games.export_ongoing_by_playerclient.games.export_by_playerclient.games.export_multiclient.games.get_among_playersclient.games.stream_games_by_idsclient.games.add_game_ids_to_streamclient.games.get_ongoingclient.games.stream_game_movesclient.games.get_tv_channelsclient.challenges.createclient.challenges.create_aiclient.challenges.create_openclient.challenges.create_with_acceptclient.challenges.acceptclient.challenges.declineclient.board.stream_incoming_eventsclient.board.seekclient.board.stream_game_stateclient.board.make_moveclient.board.post_messageclient.board.abort_gameclient.board.resign_gameclient.board.handle_draw_offerclient.board.offer_drawclient.board.accept_drawclient.board.decline_drawclient.board.handle_takeback_offerclient.board.offer_takebackclient.board.accept_takebackclient.board.decline_takebackclient.bots.stream_incoming_eventsclient.bots.stream_game_stateclient.bots.make_moveclient.bots.post_messageclient.bots.abort_gameclient.bots.resign_gameclient.bots.accept_challengeclient.bots.decline_challengeclient.tournaments.getclient.tournaments.get_tournamentclient.tournaments.create_arenaclient.tournaments.create_swissclient.tournaments.export_arena_gamesclient.tournaments.export_swiss_gamesclient.tournaments.arena_by_teamclient.tournaments.swiss_by_teamclient.tournaments.tournaments_by_userclient.tournaments.stream_resultsclient.tournaments.stream_by_creatorclient.broadcasts.createclient.broadcasts.getclient.broadcasts.updateclient.broadcasts.push_pgn_updateclient.simuls.getclient.studies.export_chapterclient.studies.exportclient.messaging.sendclient.oauth.test_tokensclient.tv.get_current_gamesclient.tv.stream_current_gameclient.tv.get_best_ongoingDetails for each function can be found in thefull documentation.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.11.0 (2021-03-18)AddTournaments.create_arenafor creating arena tournamentsAddTournaments.create_swissfor creating swiss tournamentsAddTournaments.export_arena_gamesfor exporting arena gamesAddTournaments.export_swiss_gamesfor exporting swiss gamesAddTournaments.arena_by_teamfor getting arena tournaments by teamAddTournaments.swiss_by_teamfor getting swiss tournaments by teamAddTournaments.tournaments_by_userfor getting tournaments by userDeprecatedTournaments.createandTournaments.export_gamesUploaded fork to pypiMinor fixes for docstringsMinor updates to README, AUTHORS0.10.0 (2020-04-26)AddChallenge.create_aifor creating an AI challengeAddChallenge.create_openfor creating an open challengeAddChallenge.create_with_acceptauto-acceptance of challenges using OAuth tokenBugfix for passing initial board positions in FEN for challengesMinor fixes for docstrings0.9.0 (2020-04-14)Add remainingBoardendpoints: seek, handle_draw_offer, offer_draw, accept_draw, and decline_drawMultiple doc updates/fixesAdd codecov reporting0.8.0 (2020-03-08)Add newBoardclient: stream_incoming_events, stream_game_state, make_move, post_message, abort_game, and resign_game0.7.0 (2020-01-26)Add simulsAdd studies export and export chapterAdd tournament results, games export, and list by creatorAdd user followers, users following, rating history, and puzzle activityAdd newTeamsclient: join, get members, kick member, and leaveUpdated documentation, including new docs for some useful utilsFixed bugs inTournaments.export_gamesDeprecatedUsers.get_by_team- useTeams.get_membersinstead0.6.1 (2020-01-20)Add py37 to the travis buildUpdate development status classifier to 4 - BetaFix py36 issue preventing successful buildMake updates to the Makefile0.6.0 (2020-01-20)Add logging to theberserk.sessionmoduleFix exception message when no causeFix bug inBroadcasts.push_pgn_updateUpdate documentation and tweak the theme0.5.0 (2020-01-20)AddResponseErrorfor 4xx and 5xx responses with status code, reason, and causeAddApiErrorfor all other request errorsFix test case broken by 0.4.0 releasePut all utils code under test0.4.0 (2020-01-19)Add support for the broadcast endpointsAdd a utility for easily converting API objects into update paramsFix multiple bugs with the tournament create endpointImprove the reusability of some conversion utilitiesImprove many docstrings in the client classes0.3.2 (2020-01-04)Fix bug where options not passed for challenge creationConvert requirements from pinned to sematically compatibleBump all developer dependenciesUse pytest instead of the older py.testUse py37 in tox0.3.1 (2018-12-23)Convert datetime string in tournament creation response into datetime object0.3.0 (2018-12-23)Convert all timestamps to datetime in all responsesProvide support for challenging other players to a game0.2.1 (2018-12-08)Bump requests dependency to >-2.20.0 (CVE-2018-18074)0.2.0 (2018-12-08)Addpositionandstart_dateparams toTournament.createAddPositionenum0.1.2 (2018-07-14)Fix an asine bug in the docs0.1.1 (2018-07-14)Added tests for session and formats modulesFixed mispelled PgnHandler class (!)Fixed issue with trailing whitespace when splitting multiple PGN textsFixed the usage overview in the READMEFixed the versions for travis-ciMade it easier to test theJsonHandlerclassSalted the bumpversion config to taste0.1.0 (2018-07-10)First release on PyPI.