rebootpy 0.0.1__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.
- rebootpy-0.0.1/LICENSE +21 -0
- rebootpy-0.0.1/PKG-INFO +104 -0
- rebootpy-0.0.1/README.md +70 -0
- rebootpy-0.0.1/rebootpy/__init__.py +52 -0
- rebootpy-0.0.1/rebootpy/auth.py +1117 -0
- rebootpy-0.0.1/rebootpy/avatar.py +54 -0
- rebootpy-0.0.1/rebootpy/client.py +3561 -0
- rebootpy-0.0.1/rebootpy/enums.py +292 -0
- rebootpy-0.0.1/rebootpy/errors.py +244 -0
- rebootpy-0.0.1/rebootpy/ext/commands/__init__.py +10 -0
- rebootpy-0.0.1/rebootpy/ext/commands/_types.py +27 -0
- rebootpy-0.0.1/rebootpy/ext/commands/bot.py +918 -0
- rebootpy-0.0.1/rebootpy/ext/commands/cog.py +465 -0
- rebootpy-0.0.1/rebootpy/ext/commands/context.py +324 -0
- rebootpy-0.0.1/rebootpy/ext/commands/converter.py +200 -0
- rebootpy-0.0.1/rebootpy/ext/commands/cooldown.py +269 -0
- rebootpy-0.0.1/rebootpy/ext/commands/core.py +1833 -0
- rebootpy-0.0.1/rebootpy/ext/commands/errors.py +483 -0
- rebootpy-0.0.1/rebootpy/ext/commands/help.py +1555 -0
- rebootpy-0.0.1/rebootpy/ext/commands/typedefs.py +30 -0
- rebootpy-0.0.1/rebootpy/ext/commands/view.py +198 -0
- rebootpy-0.0.1/rebootpy/friend.py +631 -0
- rebootpy-0.0.1/rebootpy/http.py +1722 -0
- rebootpy-0.0.1/rebootpy/message.py +128 -0
- rebootpy-0.0.1/rebootpy/news.py +82 -0
- rebootpy-0.0.1/rebootpy/party.py +4554 -0
- rebootpy-0.0.1/rebootpy/playlist.py +105 -0
- rebootpy-0.0.1/rebootpy/presence.py +366 -0
- rebootpy-0.0.1/rebootpy/stats.py +328 -0
- rebootpy-0.0.1/rebootpy/store.py +279 -0
- rebootpy-0.0.1/rebootpy/typedefs.py +35 -0
- rebootpy-0.0.1/rebootpy/user.py +629 -0
- rebootpy-0.0.1/rebootpy/utils.py +155 -0
- rebootpy-0.0.1/rebootpy/xmpp.py +1770 -0
- rebootpy-0.0.1/rebootpy.egg-info/PKG-INFO +104 -0
- rebootpy-0.0.1/rebootpy.egg-info/SOURCES.txt +39 -0
- rebootpy-0.0.1/rebootpy.egg-info/dependency_links.txt +1 -0
- rebootpy-0.0.1/rebootpy.egg-info/requires.txt +8 -0
- rebootpy-0.0.1/rebootpy.egg-info/top_level.txt +1 -0
- rebootpy-0.0.1/setup.cfg +4 -0
- rebootpy-0.0.1/setup.py +60 -0
rebootpy-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-2020 Terbau
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
rebootpy-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: rebootpy
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Library for interacting with fortnite services
|
|
5
|
+
Home-page: https://github.com/xMistt/rebootpy
|
|
6
|
+
Author: xMistt
|
|
7
|
+
License: MIT
|
|
8
|
+
Project-URL: Documentation, https://rebootpy.readthedocs.io/en/latest/
|
|
9
|
+
Project-URL: Issue tracker, https://github.com/xMistt/rebootpy/issues
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.5
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Topic :: Internet
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Requires-Python: >=3.5.3
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: aiohttp>=3.9.5
|
|
28
|
+
Requires-Dist: aioxmpp>=0.13.2
|
|
29
|
+
Requires-Dist: aioconsole>=0.1.15
|
|
30
|
+
Provides-Extra: docs
|
|
31
|
+
Requires-Dist: sphinxcontrib_trio==1.1.2; extra == "docs"
|
|
32
|
+
Requires-Dist: furo==2021.4.11b34; extra == "docs"
|
|
33
|
+
Requires-Dist: Jinja2<3.1; extra == "docs"
|
|
34
|
+
|
|
35
|
+
# rebootpy
|
|
36
|
+
|
|
37
|
+
[](https://pypi.org/project/rebootpy/)
|
|
38
|
+
[](https://pypi.org/project/rebootpy/)
|
|
39
|
+
[](https://www.paypal.me/terbau)
|
|
40
|
+
|
|
41
|
+
Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.
|
|
42
|
+
|
|
43
|
+
This library is a fork of [Terbau](https://github.com/Terbau/)'s [fortnitepy](https://github.com/Terbau/fortnitepy) which was abandoned.
|
|
44
|
+
|
|
45
|
+
**Note:** This library is still under developement so breaking changes might happen at any time.
|
|
46
|
+
|
|
47
|
+
**Some key features:**
|
|
48
|
+
- Full support for Friends.
|
|
49
|
+
- Support for XMPP events including friend and party messages + many more.
|
|
50
|
+
- Support for Parties.
|
|
51
|
+
- Support for Battle Royale stats.
|
|
52
|
+
|
|
53
|
+
# Documentation
|
|
54
|
+
https://rebootpy.readthedocs.io/en/latest/
|
|
55
|
+
|
|
56
|
+
# Installing
|
|
57
|
+
```
|
|
58
|
+
# windows
|
|
59
|
+
py -3 -m pip install -U rebootpy
|
|
60
|
+
|
|
61
|
+
# linux
|
|
62
|
+
python3 -m pip install -U rebootpy
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
# Basic usage
|
|
66
|
+
```py
|
|
67
|
+
import rebootpy
|
|
68
|
+
|
|
69
|
+
from rebootpy.ext import commands
|
|
70
|
+
|
|
71
|
+
bot = commands.Bot(
|
|
72
|
+
command_prefix='!',
|
|
73
|
+
auth=fortnitepy.AuthorizationCodeAuth()
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
@bot.event
|
|
77
|
+
async def event_ready():
|
|
78
|
+
print(f'Bot ready as {bot.user.display_name} ({bot.user.id})')
|
|
79
|
+
|
|
80
|
+
@bot.event
|
|
81
|
+
async def event_friend_request(request):
|
|
82
|
+
await request.accept()
|
|
83
|
+
|
|
84
|
+
@bot.command()
|
|
85
|
+
async def hello(ctx):
|
|
86
|
+
await ctx.send('Hello!')
|
|
87
|
+
|
|
88
|
+
bot.run()
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
# Authorization
|
|
92
|
+
How to get a one time authorization code:
|
|
93
|
+
1. Log into the epic games account of your choice [here](https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect%3FclientId%3D3446cd72694c4a4485d81b77adbb2141%26responseType%3Dcode).
|
|
94
|
+
2. Copy the hex part from the url that shows up as showcased by the image below:
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
# Credit
|
|
99
|
+
Thanks to [Kysune](https://github.com/SzymonLisowiec), [iXyles](https://github.com/iXyles), [Vrekt](https://github.com/Vrekt) and [amrsatrio](https://github.com/Amrsatrio) for ideas and/or work that this library is built upon.
|
|
100
|
+
|
|
101
|
+
Also thanks to [discord.py](https://github.com/Rapptz/discord.py) for much inspiration code-wise.
|
|
102
|
+
|
|
103
|
+
# Need help?
|
|
104
|
+
If you need more help feel free to join this [discord server](https://discord.gg/rnk869s).
|
rebootpy-0.0.1/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# rebootpy
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/rebootpy/)
|
|
4
|
+
[](https://pypi.org/project/rebootpy/)
|
|
5
|
+
[](https://www.paypal.me/terbau)
|
|
6
|
+
|
|
7
|
+
Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.
|
|
8
|
+
|
|
9
|
+
This library is a fork of [Terbau](https://github.com/Terbau/)'s [fortnitepy](https://github.com/Terbau/fortnitepy) which was abandoned.
|
|
10
|
+
|
|
11
|
+
**Note:** This library is still under developement so breaking changes might happen at any time.
|
|
12
|
+
|
|
13
|
+
**Some key features:**
|
|
14
|
+
- Full support for Friends.
|
|
15
|
+
- Support for XMPP events including friend and party messages + many more.
|
|
16
|
+
- Support for Parties.
|
|
17
|
+
- Support for Battle Royale stats.
|
|
18
|
+
|
|
19
|
+
# Documentation
|
|
20
|
+
https://rebootpy.readthedocs.io/en/latest/
|
|
21
|
+
|
|
22
|
+
# Installing
|
|
23
|
+
```
|
|
24
|
+
# windows
|
|
25
|
+
py -3 -m pip install -U rebootpy
|
|
26
|
+
|
|
27
|
+
# linux
|
|
28
|
+
python3 -m pip install -U rebootpy
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# Basic usage
|
|
32
|
+
```py
|
|
33
|
+
import rebootpy
|
|
34
|
+
|
|
35
|
+
from rebootpy.ext import commands
|
|
36
|
+
|
|
37
|
+
bot = commands.Bot(
|
|
38
|
+
command_prefix='!',
|
|
39
|
+
auth=fortnitepy.AuthorizationCodeAuth()
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
@bot.event
|
|
43
|
+
async def event_ready():
|
|
44
|
+
print(f'Bot ready as {bot.user.display_name} ({bot.user.id})')
|
|
45
|
+
|
|
46
|
+
@bot.event
|
|
47
|
+
async def event_friend_request(request):
|
|
48
|
+
await request.accept()
|
|
49
|
+
|
|
50
|
+
@bot.command()
|
|
51
|
+
async def hello(ctx):
|
|
52
|
+
await ctx.send('Hello!')
|
|
53
|
+
|
|
54
|
+
bot.run()
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
# Authorization
|
|
58
|
+
How to get a one time authorization code:
|
|
59
|
+
1. Log into the epic games account of your choice [here](https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect%3FclientId%3D3446cd72694c4a4485d81b77adbb2141%26responseType%3Dcode).
|
|
60
|
+
2. Copy the hex part from the url that shows up as showcased by the image below:
|
|
61
|
+
|
|
62
|
+

|
|
63
|
+
|
|
64
|
+
# Credit
|
|
65
|
+
Thanks to [Kysune](https://github.com/SzymonLisowiec), [iXyles](https://github.com/iXyles), [Vrekt](https://github.com/Vrekt) and [amrsatrio](https://github.com/Amrsatrio) for ideas and/or work that this library is built upon.
|
|
66
|
+
|
|
67
|
+
Also thanks to [discord.py](https://github.com/Rapptz/discord.py) for much inspiration code-wise.
|
|
68
|
+
|
|
69
|
+
# Need help?
|
|
70
|
+
If you need more help feel free to join this [discord server](https://discord.gg/rnk869s).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# flake8: noqa
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2019-2021 Terbau
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
__version__ = '0.0.1'
|
|
29
|
+
|
|
30
|
+
from .client import (BasicClient, Client, run_multiple, start_multiple,
|
|
31
|
+
close_multiple)
|
|
32
|
+
from .auth import (Auth, DeviceCodeAuth, ExchangeCodeAuth,
|
|
33
|
+
AuthorizationCodeAuth, DeviceAuth, RefreshTokenAuth,
|
|
34
|
+
AdvancedAuth)
|
|
35
|
+
from .friend import Friend, IncomingPendingFriend, OutgoingPendingFriend
|
|
36
|
+
from .message import FriendMessage, PartyMessage
|
|
37
|
+
from .party import (DefaultPartyConfig, DefaultPartyMemberConfig, PartyMember,
|
|
38
|
+
ClientPartyMember, Party, ClientParty,
|
|
39
|
+
ReceivedPartyInvitation, SentPartyInvitation,
|
|
40
|
+
PartyJoinConfirmation, PartyJoinRequest, SquadAssignment)
|
|
41
|
+
from .presence import Presence, PresenceGameplayStats, PresenceParty
|
|
42
|
+
from .user import (ClientUser, User, BlockedUser, ExternalAuth,
|
|
43
|
+
UserSearchEntry, SacSearchEntryUser)
|
|
44
|
+
from .stats import StatsV2, StatsCollection
|
|
45
|
+
from .enums import *
|
|
46
|
+
from .errors import *
|
|
47
|
+
from .store import Store, StoreItem
|
|
48
|
+
from .news import BattleRoyaleNewsPost
|
|
49
|
+
from .playlist import Playlist
|
|
50
|
+
from .avatar import Avatar
|
|
51
|
+
from .http import HTTPRetryConfig, Route
|
|
52
|
+
from .utils import *
|