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

Uploaded Python 3

File details

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

File metadata

  • Download URL: riotmanifest-2.2.0.tar.gz
  • Upload date:
  • Size: 56.8 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.0.tar.gz
Algorithm Hash digest
SHA256 2448c12f80cc0df1f2f696fd4147c434725255e87b401366c8488bc402b1ec20
MD5 14c8325ff84c41ef27cd4decdea4f03c
BLAKE2b-256 1056bd7ac64af294d69f5fca4a0f5f8dcd5d5fa5aa95bf0c3475dcd1fb662923

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: riotmanifest-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 67.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41a627be90199b707d38f93f2f3706bb9423d088464cc2bfbfdee64c9702e445
MD5 9e0313512728d054a835c59811cd8c07
BLAKE2b-256 3af53dc9b86be9ae089b692dba0adde75f7a7f2e8f415d8a36b05c4dd33710bb

See more details on using hashes here.

Provenance

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