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 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.0.2.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

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

py_epic-0.0.2-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file py-epic-0.0.2.tar.gz.

File metadata

  • Download URL: py-epic-0.0.2.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for py-epic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a18fe8d41a10ba2e76e6861e73ca8aae1418f6028f6faece82c1c77baccc2cf7
MD5 e68151698c483b7e69adae9cf5ba0fa5
BLAKE2b-256 021b16c063787152b1931186a0c0bddc759c2f6dfdcc9b76e7b8a88a248b43e8

See more details on using hashes here.

File details

Details for the file py_epic-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_epic-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 46.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for py_epic-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72f864a5b44cf51d1658eebf658f19a00664289f3cb3f26b0439711dd9c8f115
MD5 6c51f6da06f9f375a115c2dd25cebddb
BLAKE2b-256 4b560c7b66cefe42af4877bb97f9362429ca4f774f9d2c4fbb23aea0ab508cf7

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