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.1.tar.gz (171.2 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.1-py3-none-any.whl (198.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rebootpy-1.0.1.tar.gz
  • Upload date:
  • Size: 171.2 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.1.tar.gz
Algorithm Hash digest
SHA256 239b52ba15e6d561bf4c054951e1bf0212bdf1c327c47c6e085bfef20b406668
MD5 03a4ac7676c2985dac36fa3206494ec8
BLAKE2b-256 eb0a9b8ab89c0e13494e8037dac6d45e17d73f5bd72a86bd1b77f3e3478495c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rebootpy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5ed272afc12f4c8954755c7c02184d855f17c7445d4f2255bdca47b730cb33
MD5 b2574bb1c8af9de9a14a4ea52e1f9b6b
BLAKE2b-256 1d0e1f055760bd00847a45a930cb2462bdb819753b5afe5abacf0e7f55413f4d

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