Library for interacting with fortnite services
Project description
rebootpy
Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.
This library is a fork of Terbau's fortnitepy which was abandoned.
If you want to check out the original commit history, you can view it here.
Note: This library is still under development so breaking changes might happen at any time.
Some key features:
- Full support for Friends.
- Support for XMPP events.
- Support for Parties.
- Support for Battle Royale stats.
- Support for friend & party messages.
Documentation
https://rebootpy.readthedocs.io/en/latest/
Installing
# windows
py -3 -m pip install -U rebootpy
# linux
python3 -m pip install -U rebootpy
Basic usage
import rebootpy
from rebootpy.ext import commands
bot = commands.Bot(
command_prefix='!',
auth=rebootpy.AuthorizationCodeAuth()
)
@bot.event
async def event_ready():
print(f'Bot ready as {bot.user.display_name} ({bot.user.id})')
@bot.event
async def event_friend_request(request):
await request.accept()
@bot.command()
async def hello(ctx):
await ctx.send('Hello!')
bot.run()
Authorization
How to get a one time authorization code:
- Log into the epic games account of your choice here.
- Copy the hex part from the url that shows up as showcased by the image below:
Keep in mind that authorization code isn't the only method of authentication, you can view all of them here, DeviceAuth is recommended once you've generated device auths.
Credit
Thanks to Kysune, iXyles, Vrekt and amrsatrio for ideas and/or work that this library is built upon.
Need help?
If you need more help feel free to join this discord server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rebootpy-0.9.3.tar.gz
.
File metadata
- Download URL: rebootpy-0.9.3.tar.gz
- Upload date:
- Size: 164.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b34d71f13d2529cec498dacc6aa05cf85bc21b7ea432944c7f390aec2d68bbd0 |
|
MD5 | 794b8d57fdf83fb811a53093c57b8527 |
|
BLAKE2b-256 | 75da65ac9ec04d3f0509d7635121ea8dac4310e9fd72e877a9103c463988314d |
File details
Details for the file rebootpy-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: rebootpy-0.9.3-py3-none-any.whl
- Upload date:
- Size: 191.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3bcd3635cef8a84bbb05c26687a1fa11cb1e47d60c0424d2551434fe7dfc82d |
|
MD5 | 34861d50098652d9ed6fd31e1a69ce2c |
|
BLAKE2b-256 | 2799b0979b43b316095219928f4b59ec4a5d5680f4468458e5e3412e05e140a6 |