Skip to main content

HTTP wrapper for the Epic/Fortnite APIs.

Project description

Code style: black

Still in early development.

PyEpic

An asynchronous, object-oriented API wrapper for the Epic/Fortnite HTTP services, written in Python.

Key Features

  • Use of the asyncio framework to handle many IO-bound tasks concurrently.
  • Automatic, configurable rate limit handling and caching.
  • Optimised for speed and memory.

Installing

Python 3.10 or higher is required. For project dependencies, see requirements.txt.

It is recommended to install the library within a virtual environment instead of the global Python installation.

# Windows
py -m pip install py-epic

#Linux/MacOS
python3 -m pip install py-epic

Basic Example

import asyncio
import pyepic


async def main():
    async with pyepic.HTTPClient() as client:
        auth_code = input(f'Enter authorization code from {client.user_auth_path} here: ')

        async with client.create_auth_session(auth_code) as auth_session:
            account = await auth_session.account()

            print(f'Logged in as: {account}')


asyncio.run(main())

Notes

  • PyEpic does not currently support Epic Games' XMPP services. This includes real-time in-game events such as party invites or whispers.

Disclaimers

  • The APIs that PyEpic interacts with are not officially documented, nor are they intended to be used outside the official clients. As a result, the package could experience major breaking changes (or stop working!) at any moment.

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

py-epic-0.1.1.tar.gz (43.0 kB view hashes)

Uploaded Source

Built Distribution

py_epic-0.1.1-py3-none-any.whl (47.2 kB view hashes)

Uploaded Python 3

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