A Python library to record League of Legends replays
Project description
LoL Replay Recorder
A Python library for recording League of Legends replays programmatically.
Features
- League Client API Integration: Authenticate with the League Client (LCU API)
- Replay Control: Programmatic control of replay playback and recording
- Window Automation: Automated camera control and UI interaction during replays
Requirements
- Python >= 3.10
- League of Legends client installed
- Supported OS: Windows, macOS, Linux
Installation
pip install lol-replay-recorder
Quick Start
import asyncio
from lol_replay_recorder import LeagueReplayClient
async def record_replay():
# Initialize replay client
client = LeagueReplayClient()
await client.init()
await client.load()
# Control replay playback
await client.play()
await asyncio.sleep(5)
await client.pause()
# Clean up
await client.exit()
# Run the async function
asyncio.run(record_replay())
Development
This project uses uv for dependency management.
# Install dependencies
uv sync
# Run tests
uv run pytest
# Run only unit tests
uv run pytest -m unit
# Run type checking
uv run mypy src/
# Run linting
uv run ruff check src/
License
MIT
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
lol_replay_recorder-0.1.0.tar.gz
(137.4 kB
view details)
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 lol_replay_recorder-0.1.0.tar.gz.
File metadata
- Download URL: lol_replay_recorder-0.1.0.tar.gz
- Upload date:
- Size: 137.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7281288978889a24fdbb41d6af41d1b5ff902a9a264c2fd22ba3ab1a18c28ce0
|
|
| MD5 |
a572319c33d22e52d17696dc2458e469
|
|
| BLAKE2b-256 |
f5912504c056e29d82048bb12e39da677d22398a59f5371e1364379986e1abfd
|
File details
Details for the file lol_replay_recorder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lol_replay_recorder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f09c8b7d8297ca6abab710e51f099743448bbaaaf917b43568f626df284e46d
|
|
| MD5 |
cada5f25d802cc922a1d65463ce49f4f
|
|
| BLAKE2b-256 |
d0d41637ef1b5b9b953e7b41e614430de163da5aa5971b8e25a3dbde44576303
|