Releases: Sheppsu/osu.py
Releases · Sheppsu/osu.py
v0.4.1
v0.4.0
New
- get_lazer_beatmap_scores endpoint was added
- SoloScore object was added
- New enums were added (UserScoreType, ForumTopicType, ChatChannelType)
Breaking changes
- Score class was renamed to LegacyScore and the Score class is a class for instantiating a score object (SoloScore or LegacyScore) based on the type attribute given by the API.
Non-breaking changes
- The scope required for the get_users endpoint changed from lazer to public.
v0.3.0
Changes from v0.2.10 to v0.3.0
New
- More custom rate limit handling. You can choose the wait time between requests as well as the max requests per minute. Just make sure you're always following peppy's TOU for the api:
Use the API for good. Don't overdo it. If in doubt, ask before (ab)using :). this section may expand as necessary.
Current rate limit is set at an insanely high 1200 requests per minute, with burst capability of up to 200 beyond that. If you require more, you probably fall into the above category of abuse. If you are doing more than 60 requests a minute, you should probably give peppy a yell.
Mods
enum has new methods to check compatibility between mods.- Scope object has a
__str__
method. ( #5 ) Mods
enum has new methods:__iter__
andto_readable_string
(read about it here https://osupy.readthedocs.io/en/latest/api.html#osu.Mods.to_readable_string)- All objects have
__repr__
method. (#7 ) - Many new objects, enums, and endpoints. All new objects and enums are related to the new endpoints. List of new endpoints:
get_beatamapset_events
get_matches
get_match
get_rooms
get_seasonal_backgrounds
get_room
get_score_by_id
search_beatmapsets
get_room_leaderboard
get_replay_data
get_friends
AuthHandler
has save and load utilities now.- Endpoints are marked as needing a user where necessary and an error is raised when trying to make a request to an endpoint that requires a user without having a user authorized.
Mod
enum which is an enum for all mods and is not a flag enum compared to theMods
enum.
Breaking changes
- Deleting and adding a few mods to the
Mods
enum as well as changing Relax2 to AutoPilot. Mods.parse_and_return_any_list
->Mods.parse_any_list
- (Possibly breaking)
Score
.mods is of typeMods
now.
Non-breaking changes
AsynchronousClient
uses aiohttp for asynchronous requests.