Skip to main content

CommunityDragon Toolbox

A toolbox to work with League of Legends game files and export files for CDragon. It can be used as a library or a command-line tool.

Most things are discussed on our Discord server. Feel free to join!

Install

pip3 install cdtb

Windows users: if needed precompiled packages of binary dependencies can be found here.

Updating hashes

Most commands require hash lists which are updated frequently and and not bundled with this code.

To download them locally from raw.communitydragon.org, run:

cdtb fetch-hashes

The command will print where they are downloaded. By default, they will land in ~/.local/share/cdragon (or %LOCALAPPDATA%/cdragon on Windows). An alternate location can be configured using the CDTB_HASHES_DIR or CDRAGON_DATA environment variables.

Hashes are versionned in the Data repository.

Command-line examples

The CLI interface allows:

  • download game files and list relations between
  • list and extract content of WAD files
  • export game files to be served by CDragon

Here are some examples, use cdtb -h for details.

# download and extract files for the latest patch to the directory `cdn`
# (files from the new patcher will be used)
cdtb -v download -s cdn patch=

# download and extract files from the PBE to the directory `cdn`
cdtb -v download -s cdn --patchline pbe patch=main

# same, but don't download language-specific files
cdtb download -s cdn --no-lang patch=

# list patch versions (using already downloaded data in `cdn/`)
cdtb versions -s cdn patch

# list game files for patch 9.9
cdtb files -s cdn game=9.9

# extract a WAD file
cdtb wad-extract path/to/assets.wad

# list content of a WAD file
cdtb wad-list path/to/assets.wad

# export files from PBE
cdtb export -s cdn --patchline pbe --full main

# export files of patch 7.23 into export/7.23 (deprecated)
cdtb export -o export 7.23

WAD files

WADs are archives used by the clients. They contain assets, game data (e.g. item description), files for the LCU interface and more.

Paths of files in WAD files are hashed, they are not stored in clear in the archive. A large number of these hashes have been guessed but there are still a lot of unresolved hashes.

An hash list is provided and regularly updated with new hashes as they are discovered, especially after client updates.

Metadata

Release files for cdtb 1.3.0

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

Source distribution (sdist)

Source distribution for cdtb 1.3.0
File Size Uploaded
cdtb-1.3.0.tar.gz 55.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cdtb 1.3.0
File Interpreter ABI Platform
cdtb-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 117.3 kB

Release files / cdtb-1.3.0.tar.gz

Download URL cdtb-1.3.0.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
629a22f3779d30fdeb58d79a855d54be4a788214350735b7abc91ae3e3e8e5fd
BLAKE2b-256 checksum
How to use checksums
1d1315548829f257acb5cc270bc76d78c5fb009325166184200aa81ffea9f64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cdtb-1.3.0-py3-none-any.whl

Download URL cdtb-1.3.0-py3-none-any.whl
Size 62.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e04589f316db46f03b01f71c1320c87e2f2b1e05f3608683714a2e20434b2bdd
BLAKE2b-256 checksum
How to use checksums
4838775201fd4bfd8b05cd231d0dfacd74f939c84e5f496353a1a70095ef6bd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

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