Skip to content

Releases: Sheppsu/osu.py

v0.4.1

18 Sep 22:47
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

Breaking changes

  • status attribute of BeatmapsetCompact and BeatmapCompact objects changed from type str to type RankStatus

Non-breaking changes

  • Typing and doc changes

v0.4.0

10 Sep 23:33
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

New

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

07 Aug 10:09
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

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__ and to_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 the Mods 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 type Mods now.

Non-breaking changes

  • AsynchronousClient uses aiohttp for asynchronous requests.

Bug fixes

  • AsynchronousClient.get_user_beatmap_scores (#5 )
  • KudosuHistory data fix (#8 )
  • EventUser data fix (#8 )
  • Rate limit fix for AsynchronousClient