Skip to content

Releases: Sheppsu/osu.py

v2.2.2

08 Oct 09:17
Compare
Choose a tag to compare

Deprecations

  • key parameter on Client.get_user is deprecated in favor of prefixing usernames with "@"

New

  • Added order parameter on BeatmapsetSearchFilter.set_sort
  • Added Client.lookup_users

Docs

  • Added missing enums on the docs: BeatmapsetSearchSort, BeatmapsetSearchStatus, BeatmapsetSearchExtra, BeatmapsetSearchGeneral, and BeatmapsetSearchPlayed, ``

v2.2.1

06 Aug 18:10
Compare
Choose a tag to compare

Highly recommend switching to this version because of a crucial internal change.

Fixes

  • Fix typing for GameModeStr.get_int_equivalent and GameModeInt.get_str_equivalent

Internal changes

  • Added get_required function, which prevents key errors on expected data unless testing is in progress. So bugs can be found during testing but won't affect production code.

v2.2.0

29 Jul 02:57
Compare
Choose a tag to compare

Changes

  • Deprecated Client.from_client_credentials in favor of Client.from_credentials and same for AsynchronousClient.from_credentials, which has a new parameter lazily_authenticate that determines whether to immediately authenticate or not (defaults to lazy). Additionally, AsynchronousClient.from_credentials is no longer asynchronous, but returns an awaitable if lazily_authenticate is false.

New

  • Added UserScoreType.PINNED
  • Added User.daily_challenge_user_stats and DailyChallengeUserStats

v2.1.2

09 Jun 02:45
Compare
Choose a tag to compare

Removes some uncaught debug code

v2.1.1

08 Jun 16:21
Compare
Choose a tag to compare

This version complies with changes to beatmapset nomination requirements

  • BeatmapsetRequirement has two new optional attributes: eligible_main_rulesets and required_meta and required is now optional
  • Added BeatmapsetRequiredNominations as the type of required_meta

v2.1.0

31 May 15:32
Compare
Choose a tag to compare

New features

  • Add UserStatistics.rank_change_since_30_days

v2.0.2

02 May 00:49
Compare
Choose a tag to compare

Bug fixes

  • Made CurrentUserPin.score_type optional
  • Removed a debug print statement (oops)

v2.0.1

21 Apr 08:56
Compare
Choose a tag to compare

Small update that just has doc changes and removes unused objects

v2.0.0

21 Apr 07:09
Compare
Choose a tag to compare

Breaking changes

  • Remove support for endpoints requiring the lazer scope, which no longer works anyways
  • Remove anything involving lazer.ppy.sh
  • AsynchronousClient.from_client_credentials is asynchronous

New changes

  • Add Client.set_api_version
  • Create BaseAuthHandler and change some internals to reference it
  • Create AsynchronousAuthHandler for AsynchronousClient
  • Added __slots__ to Client
  • Added active_tournament_banners for User
  • Added Client.get_score_by_id_only
  • Added __len__ and __iter__ to BeatmapScores

Other stuff

  • websockets and osrparse requirements are now under their own features: replay and notifications respectively

v1.2.0

21 Oct 06:38
Compare
Choose a tag to compare

Bug fixes

  • fixed BaseNominations.nominated, ranking_eta, and ranking_queue_position not being optional
  • added CurrentNomination and fixed BeatmapsetCompact.current_nominations type

New changes

  • added download_beatmapset endpoint
  • get_score has been removed because the endpoint was removed (not marking as breaking because a 404 error would be raised anyway)
  • renamed LegacyScore.replay to has_replay because replay has been deprecated in favor of has_replay (though LegacyScore has a replay property for backwards compatibility)
  • added UserBadge.image_2x_url
  • added aiofiles to requirements.txt

Internal changes

  • replace use of time.perf_counter with monotonic
  • added make_request_to_endpoint and make_request wrapper for it
  • removed is_download from async make_request_to_endpoint and allow_redirect from both sync and async