Osu.py

Latest version: v2.0.1

Safety actively analyzes 622894 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.1

Small update that just has doc changes and removes unused objects

2.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` 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

1.2.0

**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

1.1.0

**New changes**
- Implement cursor parameter for `get_matches`
- Add `ASCENDING` and `DESCENDING` to `MatchSort` to make it more inuitive. `OLDEST` and `NEWEST` still exist there for backwards compatibility, but are not listed in the documentation.

**Bug fixes**
- Fix rate limit handler for `AsynchronousClient` when multiple asynchronous requests
- Fix `UserAccountHistory.supporting_url`

**Other**
- Update required version of `websockets` in requirements.txt from >=10.2,<11 to >=11,<12

1.0.0

Unfortunately, I did not keep good track of all the small changes I made in this version, though I will make sure to keep better track in the future. Most of the changes here will be rather vague.

- Several of the changes in this update are related to making the library more user friendly and providing quality of life features:
- Everything in the library has been properly typed.
- Previously undocumented objects have been documented.
- Each endpoint that would previously return a dictionary returns a unique object that is documented and typed. However, they are also backwards compatible and will still work when indexed like dictionaries.
- Some examples have been updated to be more informative and a couple more have been added.
- Much documentation has been fixed to be up to professional standards and there should be barely any mistakes in documentation.
- The formatting of the code has been standardized using black, which is being used in tandem with flake8.
- Tests have been updated to account for all the new changes and some of them have been improved to better ensure functions are working correctly.
- Several endpoints have been fixed so that they work correctly.

Regarding breaking changes: there are some, but since I didn't keep track of all the changes I made, it'd be very time consuming to pin point and list all of them. Sorry for the inconvenience.

0.6.0

**New changes**
- Updated `UserStatistics` object with several attributes: `count_300`, `count_100`, `count_50`, `count_miss`
- Updated `NotificationWebsocket` with updated functionality. If you're looking to check out all the functionality, check out [this example](https://github.com/Sheepposu/osu.py/blob/main/examples/get_notifications.py).
- Created a class for each type of detail object for `Notification.details`
- Added enums `NotificationCategory` and `NotificationType`
- Update chat_acknowledge with new query params.

**Bug fixes**
- Fix mark_notifications_read

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.