Skip to content

Releases: tybug/ossapi

v3.1.7

06 Apr 23:43
Compare
Choose a tag to compare
  • speculative fix for rare case of invalid json decode in OssapiAsync (#60)

v3.1.6

06 Apr 00:57
Compare
Choose a tag to compare
  • fix incorrect error messages and resource warnings when OssapiAsync raises an error

v3.1.5

31 Mar 23:13
Compare
Choose a tag to compare

hotfix for v3.1.4. Fixes v3.1.4 changes not actually being applied

v3.1.4

31 Mar 23:10
Compare
Choose a tag to compare
  • 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

08 Mar 19:00
Compare
Choose a tag to compare
  • 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

07 Mar 18:06
Compare
Choose a tag to compare
  • make User.rank_highest optional

v3.1.1

04 Mar 03:54
Compare
Choose a tag to compare
  • use an aiohttp.ClientSession per request in OssapiAsync. Fixes async version erroring in some cases

v3.1.0

21 Feb 09:49
Compare
Choose a tag to compare
  • 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

01 Feb 05:39
Compare
Choose a tag to compare

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 to type
  • OssapiV2#user_scores type_ param renamed to type
  • OssapiV2#user_beatmaps type_ param renamed to type
  • OssapiV2#beatmap_scores type_ param renamed to type

several functions and attributes have been renamed:

  • OssapiV2#changelog_lookup removed, use OssapiV2#changelog_build_lookup instead
  • OssapiV2#create_pm removed, use OssapiV2#send_pm instead
  • GameMode.CTB removed, use GameMode.CATCH instead
  • GameMode.STD removed, use GameMode.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

30 Jan 01:19
Compare
Choose a tag to compare
  • 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 for Score.match. This is a breaking change if you have previously been interacting with the raw json of this attribute