osu.py 2.3.0__tar.gz → 2.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {osu_py-2.3.0 → osu_py-2.3.2}/LICENSE +2 -2
- {osu_py-2.3.0/osu.py.egg-info → osu_py-2.3.2}/PKG-INFO +1 -1
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/__init__.py +1 -1
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/asyncio/client.py +1 -1
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/client.py +1 -1
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/beatmap.py +1 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/beatmapset_event.py +1 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/chat.py +0 -19
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/notification.py +1 -0
- {osu_py-2.3.0 → osu_py-2.3.2/osu.py.egg-info}/PKG-INFO +1 -1
- {osu_py-2.3.0 → osu_py-2.3.2}/MANIFEST.in +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/README.rst +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/asyncio/__init__.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/asyncio/http.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/auth.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/constants.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/enums.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/exceptions.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/http.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/notification.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/__init__.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/achievement.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/build.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/comment.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/current_user_attributes.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/discussion.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/event.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/forum.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/group.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/kudosu.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/match.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/multiplayer.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/news.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/ranking.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/scope.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/score.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/seasonal_background.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/user.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/objects/wiki.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/path.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/results.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu/util.py +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu.py.egg-info/SOURCES.txt +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu.py.egg-info/dependency_links.txt +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu.py.egg-info/requires.txt +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/osu.py.egg-info/top_level.txt +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/pyproject.toml +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/requirements.txt +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/setup.cfg +0 -0
- {osu_py-2.3.0 → osu_py-2.3.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Sheppsu
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1493,7 +1493,7 @@ class AsynchronousClient:
|
|
|
1493
1493
|
res = await self.http.make_request(Path.get_users(), **{"ids[]": ids})
|
|
1494
1494
|
return list(map(UserCompact, res["users"]))
|
|
1495
1495
|
|
|
1496
|
-
async def lookup_users(self, users:
|
|
1496
|
+
async def lookup_users(self, users: List[Union[int, str]]):
|
|
1497
1497
|
"""
|
|
1498
1498
|
Lookup users by a mix of user ids and usernames.
|
|
1499
1499
|
Can lookup maximum 50 at a time.
|
|
@@ -1468,7 +1468,7 @@ class Client:
|
|
|
1468
1468
|
res = self.http.make_request(Path.get_users(), **{"ids[]": ids})
|
|
1469
1469
|
return list(map(UserCompact, res["users"]))
|
|
1470
1470
|
|
|
1471
|
-
def lookup_users(self, users:
|
|
1471
|
+
def lookup_users(self, users: List[Union[int, str]]):
|
|
1472
1472
|
"""
|
|
1473
1473
|
Lookup users by a mix of user ids and usernames.
|
|
1474
1474
|
Can lookup maximum 50 at a time.
|
|
@@ -591,6 +591,7 @@ class BeatmapDifficultyAttributes:
|
|
|
591
591
|
|
|
592
592
|
mode_attributes: Optional[Union[:class:`OsuBeatmapDifficultyAttributes`, :class:`TaikoBeatmapDifficultyAttributes`,
|
|
593
593
|
:class:`FruitsBeatmapDifficultyAttributes`, :class:`ManiaBeatmapDifficultyAttributes`]]
|
|
594
|
+
|
|
594
595
|
Can be none for some beatmaps that are bugged and have no difficulty attributes.
|
|
595
596
|
|
|
596
597
|
type: Optional[:class:`GameModeStr`]
|
|
@@ -27,6 +27,7 @@ class BeatmapsetEventComment:
|
|
|
27
27
|
:class:`BeatmapsetEventNominationReset`, :class:`BeatmapsetEventNominationResetReceived`,
|
|
28
28
|
:class:`BeatmapsetEventGenreEdit`, :class:`BeatmapsetEventLanguageEdit`, :class:`BeatmapsetEventNsfwToggle`,
|
|
29
29
|
:class:`BeatmapsetEventOffsetEdit`, :class:`BeatmapsetEventBeatmapOwnerChange`]
|
|
30
|
+
|
|
30
31
|
The type of this attribute depends on the type of the BeatmapsetEvent object.
|
|
31
32
|
"""
|
|
32
33
|
|
|
@@ -27,25 +27,6 @@ class ChatChannel:
|
|
|
27
27
|
display icon for the channel
|
|
28
28
|
|
|
29
29
|
type: :class:`ChatChannelType`
|
|
30
|
-
Below are the channel types and their permission checks for joining/messaging:
|
|
31
|
-
PUBLIC
|
|
32
|
-
None
|
|
33
|
-
PRIVATE
|
|
34
|
-
is player in the allowed groups? (channel.allowed_groups)
|
|
35
|
-
MULTIPLAYER
|
|
36
|
-
is player currently in the mp game?
|
|
37
|
-
SPECTATOR
|
|
38
|
-
None
|
|
39
|
-
TEMPORARY
|
|
40
|
-
deprecated
|
|
41
|
-
PM
|
|
42
|
-
For PMs, two factors are taken into account:
|
|
43
|
-
Is either user blocking the other? If so, deny.
|
|
44
|
-
Does the target only accept PMs from friends? Is the current user a friend? If not, deny.
|
|
45
|
-
GROUP
|
|
46
|
-
is player in channel? (user_channels)
|
|
47
|
-
ANNOUNCE
|
|
48
|
-
is user in the announce group?
|
|
49
30
|
|
|
50
31
|
moderated: :class:`bool`
|
|
51
32
|
user can't send message when the value is `True`
|
|
@@ -49,6 +49,7 @@ class Notification:
|
|
|
49
49
|
:class:`ForumTopicReplyDetails`, :class:`UserAchievementUnlockDetails`,
|
|
50
50
|
:class:`UserBeatmapsetNewDetails`, :class:`UserBeatmapsetReviveDetails`
|
|
51
51
|
]
|
|
52
|
+
|
|
52
53
|
Details of the notification.
|
|
53
54
|
|
|
54
55
|
**Documented event names and their attribute meanings**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|