Skip to main content

Library for interacting with fortnite services

Project description

rebootpy

Supported py versions Current pypi version Donate link

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 Code

How to get a one time authorization code:

  1. Log into the epic games account of your choice here.
  2. Copy the value of the authorizationCode field from the response as shown in the image below:

Authorization Code

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, amrsatrio and This Nils 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebootpy-1.0.3.tar.gz (171.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rebootpy-1.0.3-py3-none-any.whl (198.2 kB view details)

Uploaded Python 3

File details

Details for the file rebootpy-1.0.3.tar.gz.

File metadata

  • Download URL: rebootpy-1.0.3.tar.gz
  • Upload date:
  • Size: 171.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for rebootpy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 76d63f5f8b9c8d09256ed5393c7aef1f2d1ef941bd1ed61d9e3e035ac4ac061d
MD5 3c923d3f10babc4ab99ecd44fb3e5053
BLAKE2b-256 cfec465929059d1966d2251f7ed45402aba3fe2b6fe30ad51cc862ac084e884c

See more details on using hashes here.

File details

Details for the file rebootpy-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rebootpy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 198.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for rebootpy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e772142e218ca914dc6472732183a6dbef2918e06c5ea1b5e43d052169afb27e
MD5 9953febc8d2a0e8d08e6e71defefc95d
BLAKE2b-256 4c5552c9d3a4e0fbf79f5b068990c8b3dc2f9e5bb4af11a73ca43247314897b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page