Skip to main content

A Python library to record League of Legends replays

Project description

LoL Replay Recorder

A Python library for recording League of Legends replays programmatically.

PyPI version License: MIT

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


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)

Uploaded Source

Built Distribution

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

lol_replay_recorder-0.1.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

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

Hashes for lol_replay_recorder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7281288978889a24fdbb41d6af41d1b5ff902a9a264c2fd22ba3ab1a18c28ce0
MD5 a572319c33d22e52d17696dc2458e469
BLAKE2b-256 f5912504c056e29d82048bb12e39da677d22398a59f5371e1364379986e1abfd

See more details on using hashes here.

File details

Details for the file lol_replay_recorder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lol_replay_recorder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f09c8b7d8297ca6abab710e51f099743448bbaaaf917b43568f626df284e46d
MD5 cada5f25d802cc922a1d65463ce49f4f
BLAKE2b-256 d0d41637ef1b5b9b953e7b41e614430de163da5aa5971b8e25a3dbde44576303

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