Releases: Sheppsu/osu.py
Releases · Sheppsu/osu.py
v2.2.2
Deprecations
key
parameter onClient.get_user
is deprecated in favor of prefixing usernames with "@"
New
- Added
order
parameter onBeatmapsetSearchFilter.set_sort
- Added
Client.lookup_users
Docs
- Added missing enums on the docs:
BeatmapsetSearchSort
,BeatmapsetSearchStatus
,BeatmapsetSearchExtra
,BeatmapsetSearchGeneral
, andBeatmapsetSearchPlayed
, ``
v2.2.1
Highly recommend switching to this version because of a crucial internal change.
Fixes
- Fix typing for
GameModeStr.get_int_equivalent
andGameModeInt.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
Changes
- Deprecated
Client.from_client_credentials
in favor ofClient.from_credentials
and same forAsynchronousClient.from_credentials
, which has a new parameterlazily_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
andDailyChallengeUserStats
v2.1.2
v2.1.1
This version complies with changes to beatmapset nomination requirements
BeatmapsetRequirement
has two new optional attributes:eligible_main_rulesets
andrequired_meta
andrequired
is now optional- Added
BeatmapsetRequiredNominations
as the type ofrequired_meta
v2.1.0
v2.0.2
v2.0.1
v2.0.0
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
forAsynchronousClient
- Added
__slots__
toClient
- Added
active_tournament_banners
forUser
- Added
Client.get_score_by_id_only
- Added
__len__
and__iter__
toBeatmapScores
Other stuff
- websockets and osrparse requirements are now under their own features: replay and notifications respectively
v1.2.0
Bug fixes
- fixed
BaseNominations.nominated
,ranking_eta
, andranking_queue_position
not being optional - added
CurrentNomination
and fixedBeatmapsetCompact.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
tohas_replay
because replay has been deprecated in favor ofhas_replay
(thoughLegacyScore
has areplay
property for backwards compatibility) - added UserBadge.image_2x_url
- added aiofiles to requirements.txt
Internal changes
- replace use of
time.perf_counter
withmonotonic
- added
make_request_to_endpoint
andmake_request
wrapper for it - removed
is_download
from asyncmake_request_to_endpoint
andallow_redirect
from both sync and async