Skip to main content

Library for interacting with fortnite services

Project description

fortnitepy-edit

Supported py versions Current pypi version

Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.

Note: This library is still under developement so breaking changes might happen at any time.

Some key features:

  • Full support for Friends.
  • Support for XMPP events including friend and party messages + many more.
  • Support for Parties.
  • Support for Battle Royale stats.

Documentation

https://fortnitepy.readthedocs.io/en/latest/

Installing

# windows
py -3 -m pip install -U git+https://github.com/klldtest/fortnitepy-edit
py -3 -m pip install -U fortnitepy-edit

# linux
python3 -m pip install -U git+https://github.com/klldtest/fortnitepy-edit
python3 -m pip install -U fortnitepy-edit

Basic usage

import fortnitepy
import asyncio

from fortnitepy.ext import commands

async def main():
    bot = commands.Bot(
        command_prefix='!',
        auth=fortnitepy.DeviceCodeAuth()
    )

    @bot.event
    async def event_ready():
        print('----------------')
        print('Bot ready as')
        print(bot.user.display_name)
        print('----------------')

    @bot.event
    async def event_friend_request(request):
        await request.accept()

    @bot.command()
    async def hello(ctx):
        await ctx.send('Hello!')

    await bot.start()

if __name__ == "__main__":
    asyncio.run(main())

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

fortnitepy_edit-1.1.5.tar.gz (157.1 kB view details)

Uploaded Source

Built Distribution

fortnitepy_edit-1.1.5-py3-none-any.whl (182.7 kB view details)

Uploaded Python 3

File details

Details for the file fortnitepy_edit-1.1.5.tar.gz.

File metadata

  • Download URL: fortnitepy_edit-1.1.5.tar.gz
  • Upload date:
  • Size: 157.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.15

File hashes

Hashes for fortnitepy_edit-1.1.5.tar.gz
Algorithm Hash digest
SHA256 cde22a0f0138f2e82a388ce0040b3001b3cd3d6a919882c355127d17464ae4bf
MD5 b27ae3ef64f93762f847604dcba16135
BLAKE2b-256 6a1ecdf39781097d1c8057a514545aea11917fbf7aa099258e66cef6655440ab

See more details on using hashes here.

File details

Details for the file fortnitepy_edit-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for fortnitepy_edit-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 808c523e0a4203fce205b90074d56f42891db17ee292c350dd4a0199176680dc
MD5 bac29f3eea26778d2b3e735d90c500b4
BLAKE2b-256 90a5c07185f84da79321def2a7559853fd44b962446508502d9d10a077248c4c

See more details on using hashes here.

Supported by

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