Skip to main content

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

Project description

RiotManifest

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.1.0.tar.gz (48.0 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.1.0-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for riotmanifest-2.1.0.tar.gz
Algorithm Hash digest
SHA256 26bfcf454fd4f67f86caba1b1c3c6a7e00882f1a8b603def1ae3d5f18ab85455
MD5 6dc12da523fc7a17f97e0c3cde671e70
BLAKE2b-256 a87663dfe23f9c7ca3e8f55ebd409359a5f6fa66af761d40c03b2fc198130649

See more details on using hashes here.

Provenance

The following attestation bundles were made for riotmanifest-2.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: riotmanifest-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 56.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16cbf301e9fc62a95c38e5c70bc31be090755be97acce22f416a3be2efae616b
MD5 23738a3340e0cef40b139551191b34d7
BLAKE2b-256 c7b55832620db011926f016cba265116b4ccf590ea6f2ed4021add4faded6f6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for riotmanifest-2.1.0-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