Skip to main content

HTTP wrapper for the Epic/Fortnite APIs.

Project description

Python Version: >=3.10 Code Style: black Imports: isort

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 a balance of 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 and friend requests.

Disclaimers

  • The APIs that PyEpic interacts with are not officially documented, nor are they intended to be used outside the official clients.
    • The package could experience major breaking changes (or stop working!) at any moment.
    • The developer can not take responsibility for any damages that result from using the package.

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.6.tar.gz (46.2 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.1.6-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file py_epic-0.1.6.tar.gz.

File metadata

  • Download URL: py_epic-0.1.6.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_epic-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cd97c139c20b8bbfb7d9916f066f22c6821d9e7cdb562d7b6621b5f02acf4f6c
MD5 0e68bf52744f4e6bb8542206e9c9fdb3
BLAKE2b-256 d33ce783d69f50711c2f37919c4004eefc3a76e4a5576baecf052fcdfeb15f37

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_epic-0.1.6.tar.gz:

Publisher: build.yml on delliott0000/PyEpic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: py_epic-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_epic-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 18c1f5303e1a4efee0f20f34d23b074152c59a2d1f3d22aac71cdc3b3884772e
MD5 2d4632c1a31863707a95b1883bc4744e
BLAKE2b-256 8c92a46db8f20235a296ddd8b75bb6f0680dc3c2d5545cbe05d10319ea805b51

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_epic-0.1.6-py3-none-any.whl:

Publisher: build.yml on delliott0000/PyEpic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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