Skip to main content

Endfield

A Python library for fetching and parsing player data from the Enka Network API for Endfield.

PyPI version License

Overview

Endfield is an async Python library that provides easy access to player game data from the Enka Network API. It allows developers to retrieve comprehensive information about players, their characters, weapons, equipment, and computed statistics.

Features

  • Async Support: Built with asyncio for efficient concurrent requests
  • Complete Data Models: Pydantic-based models for type-safe data handling
  • Player Showcase Data: Fetch player profiles and their character showcases
  • Character Information: Get detailed character data including skills, talents, and stats
  • Equipment & Weapons: Access equipment and weapon information
  • Stat Computation: Calculate final character statistics with modifiers
  • Asset Resolution: Built-in asset resolution with local JSON data
  • Update Checking: Check for and download library updates
  • Session Management: Flexible session handling with context managers

Installation

From PyPI

pip install endfield-py

From GitHub

pip install git+https://github.com/MR-LORD-REX/endfield-py.git

Manual Installation

git clone https://github.com/MR-LORD-REX/endfield-py.git
cd endfield
pip install -e .

Requirements

  • Python 3.8+
  • aiohttp >= 3.8.0
  • pydantic >= 2.0.0

Quick Start

Basic Usage

import asyncio
from endfield import Endfield

async def main():
    async with Endfield() as client:
        await client.update_assets()
        showcase = await client.get_showcase(uid=4225399080)
        print(showcase)

asyncio.run(main())

Enable Debug Logging

async with Endfield(debug=True) as client:
    showcase = await client.get_showcase(uid=4225399080)

Documentation

Comprehensive documentation for all classes, methods, and data models is hosted on GitHub Pages:

👉 Endfield SDK Documentation

How to get the token?

  • Open the skport website (official endfield website) and log in with game account
  • Then go to THIS API endpoint (official internal API) to get the token

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues on the GitHub repository.

Development Setup

git clone https://github.com/MR-LORD-REX/endfield-py.git
cd endfield
pip install -e .

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

Disclaimer

This is an unofficial library. Endfield is a trademark of their respective owners. This library is not affiliated with or endorsed by the game developers. Use this library responsibly and in accordance with the Enka Network API terms of service.

Support

For issues, questions, or suggestions, please open an issue on the GitHub repository.

Credits

Changelog

Version 1.2.0

  • game V1.4 asset update
  • Added monument showcase support
  • Added support for fetching character directly from skport API using token

NOTE

  • Computation of final character stats are done by the currently known formulas, some of them might be inaccurate , feel free to contribute if you encounter any discrepancies or have suggestions for improvement.

Happy Endfielding

Metadata

Release files for endfield-py 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for endfield-py 1.2.2
File Size Uploaded Provenance Actions
endfield_py-1.2.2.tar.gz 1.6 MB Without provenance Details for endfield_py-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for endfield-py 1.2.2
File Interpreter ABI Platform Actions
endfield_py-1.2.2-py3-none-any.whl Python 3 none any Details for endfield_py-1.2.2-py3-none-any.whl

Total release size: 3.4 MB

Release files / endfield_py-1.2.2.tar.gz

Download URL endfield_py-1.2.2.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
c595abe2a47ec480115ebd0ad7c814799ca6bcb11cd9f33a1e01ce7f3380b505
BLAKE2b-256 checksum
How to use checksums
127f16e8470545a002c3d4eb49858cac4c1e573f320a0ec52e44bf2d916f32cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / endfield_py-1.2.2-py3-none-any.whl

Download URL endfield_py-1.2.2-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db41e8a44d37e14550725639b14717faa4d3f928b79027adbe82beb7b25a6505
BLAKE2b-256 checksum
How to use checksums
e0d48e303c903d114266c3a5dfd89fb49ff20f65ceea4ddfb70118568e2337bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for endfield-py 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page