HTTP wrapper for the Epic/Fortnite APIs.
Project description
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
asyncioframework 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())
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_epic-0.1.19.tar.gz.
File metadata
- Download URL: py_epic-0.1.19.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf72f07f712601942a3760ca03092a3534f38f3043e82a6b9b34f539d46e572f
|
|
| MD5 |
b6fc14f79cc4c996afcde867fd5b55e1
|
|
| BLAKE2b-256 |
d8e96d1f8e39aa972288866d2672c147c150af6b80c37f4e91775d5cd392900d
|
Provenance
The following attestation bundles were made for py_epic-0.1.19.tar.gz:
Publisher:
build.yml on delliott0000/PyEpic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_epic-0.1.19.tar.gz -
Subject digest:
bf72f07f712601942a3760ca03092a3534f38f3043e82a6b9b34f539d46e572f - Sigstore transparency entry: 189738147
- Sigstore integration time:
-
Permalink:
delliott0000/PyEpic@4e5484f428d08e81351ec701db0aa73d2a3959cc -
Branch / Tag:
refs/heads/master - Owner: https://github.com/delliott0000
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@4e5484f428d08e81351ec701db0aa73d2a3959cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file py_epic-0.1.19-py3-none-any.whl.
File metadata
- Download URL: py_epic-0.1.19-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273540adde8967c8ef8c3f8f6ba6fe7bc07b42b6b2ee09ea290cfa348b8df606
|
|
| MD5 |
3cd0a74efa7f762ccde18373fbeee1d0
|
|
| BLAKE2b-256 |
e2908d44293461fa9a9ef3e05fcf2bdff747cb61ac02add847a21b5a7a13935d
|
Provenance
The following attestation bundles were made for py_epic-0.1.19-py3-none-any.whl:
Publisher:
build.yml on delliott0000/PyEpic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_epic-0.1.19-py3-none-any.whl -
Subject digest:
273540adde8967c8ef8c3f8f6ba6fe7bc07b42b6b2ee09ea290cfa348b8df606 - Sigstore transparency entry: 189738155
- Sigstore integration time:
-
Permalink:
delliott0000/PyEpic@4e5484f428d08e81351ec701db0aa73d2a3959cc -
Branch / Tag:
refs/heads/master - Owner: https://github.com/delliott0000
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@4e5484f428d08e81351ec701db0aa73d2a3959cc -
Trigger Event:
push
-
Statement type: