Skip to main content

Riot manifest parsing, concurrent downloader, and manifest/WAD diff toolkit.

Project description

RiotManifest

PyPI Python PyPI - Downloads Release Workflow GitHub Release

riot 提供的 manifest 文件解析与下载工具。

安装

pip3 install riotmanifest

快速使用

下载(异步并发,推荐)

import asyncio
from riotmanifest import PatcherManifest


async def main() -> None:
    manifest = PatcherManifest(
        "https://lol.secure.dyn.riotcdn.net/channels/public/releases/CB3A1B2A17ED9AAB.manifest",
        path="./out",
        bundle_url="https://lol.dyn.riotcdn.net/channels/public/bundles/",
    )

    files = list(manifest.filter_files(flag="zh_CN", pattern="wad.client"))
    await manifest.download_files_concurrently(files)


if __name__ == "__main__":
    asyncio.run(main())

默认并发为 16。可通过 PatcherManifest(..., concurrency_limit=...)download_files_concurrently(..., concurrency_limit=...) 调整。

完整 API 文档

完整用法(进度回调、WAD 提取、Manifest/WAD diff、性能基线)请见:

维护者

Virace

感谢

许可证

GPLv3

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

riotmanifest-2.2.1.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

riotmanifest-2.2.1-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file riotmanifest-2.2.1.tar.gz.

File metadata

  • Download URL: riotmanifest-2.2.1.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for riotmanifest-2.2.1.tar.gz
Algorithm Hash digest
SHA256 0f8bd17fa532910e2a52a1456761f06fb6a9eeca4c2ef05b815f7fe0a08aa539
MD5 a6aacfba7b699664ce025f7af2ddca83
BLAKE2b-256 eb2d8b74460861b78289958e8250db6f1ba4892a29d0f9201ec07e53dd7d45f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for riotmanifest-2.2.1.tar.gz:

Publisher: python-publish.yml on Virace/RiotManifest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file riotmanifest-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: riotmanifest-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for riotmanifest-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cce979fc658091fc1c672e9acbcc40180241df9bfd951fbc9518072e1b47f6a
MD5 705b07e52c886317be4071ef5a952d01
BLAKE2b-256 2100b6164f8e0befe414836bdc6ea5dcd53baf415182a7c0253c2a0dfaee0253

See more details on using hashes here.

Provenance

The following attestation bundles were made for riotmanifest-2.2.1-py3-none-any.whl:

Publisher: python-publish.yml on Virace/RiotManifest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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