Releases: tybug/ossapi
Releases · tybug/ossapi
v3.1.7
v3.1.6
v3.1.5
v3.1.4
- fix random hangs on requests with
OssapiAsync
- add
Beatmapset.pack_tags
- add
Matches.cursor_string
- add
MatchGame.beatmap_id
- add
ChatMessage.type
- make
Comment.commentable_{id, type}
optional - make
Comment.user_id
optional - add a proper model for
CommentableMeta.current_user_attributes
v3.1.3
- make
MatchGame.end_time
optional - drop support for python 3.7 (which is EOL in a few months anyway). This is a result of moving to pyproject.toml for building
v3.1.2
v3.1.1
v3.1.0
- add an async equivalent of
Ossapi
,OssapiAsync
. Read more on the docs. - allow instantiating
Ossapi
with an access/refresh token, for cases when you manually retrieved the token - add
UserStatistics.count{300, 100, 50, miss}
- add
Beatmapset.deleted_at
v3.0.0
This is a breaking release. See below for how to migrate (all changes are pretty simple)
the only non-breaking change in this release: ossapi now has online documentation! https://circleguard.github.io/ossapi/
OssapiV2
has been renamed to Ossapi
, and Ossapi
has been renamed to OssapiV1
. You'll need to adjust imports accordingly depending on if you were using api v1 (previously Ossapi
, now OssapiV1
) or api v2 (previously OssapiV2
, now Ossapi
).
several type_
parameters have been renamed to type
:
OssapiV2#ranking
type_
param renamed totype
OssapiV2#user_scores
type_
param renamed totype
OssapiV2#user_beatmaps
type_
param renamed totype
OssapiV2#beatmap_scores
type_
param renamed totype
several functions and attributes have been renamed:
OssapiV2#changelog_lookup
removed, useOssapiV2#changelog_build_lookup
insteadOssapiV2#create_pm
removed, useOssapiV2#send_pm
insteadGameMode.CTB
removed, useGameMode.CATCH
insteadGameMode.STD
removed, useGameMode.OSU
instead
Many arguments in OssapiV2
methods have been made keyword-only. This shouldn't affect many programs, but there may be the occasional case where you need to update to a keyword argument.
eg:
# before
api.beatmap_user_score(221777, 12092800, GameMode.OSU)
# after
api.beatmap_user_score(221777, 12092800, mode=GameMode.OSU)
v2.6.0
- implement
OssapiV2#room
- implement
OssapiV2#rooms
- implement
OssapiV2#room_leaderboard
- implement
OssapiV2#matches
- implement
OssapiV2#match
- implement
OssapiV2#send_announcement
- add a proper
ScoreMatchInfo
model forScore.match
. This is a breaking change if you have previously been interacting with the raw json of this attribute