Skip to main content

Arknights-related Toolkit

Project description

Arknights-Toolkit

Code style: black Imports: isort License pdm-managed PyPI

明日方舟(Arknights) 相关功能的整合库

现拥有如下功能:

  • 抽卡
  • 模拟十连
  • 随机干员生成
  • 公招链接生成
  • 猜干员游戏
  • 抽卡结果查询

欢迎 PR

安装

pip install arknights-toolkit
pdm add arknights-toolkit

配置

arknights-toolkit 配套了 cli 工具用于资源下载:

初始化数据与图片资源:

arkkit init

更新抽卡卡池:

arkkit update gacha path/to/gacha.json

示例

from arknights_toolkit.gacha import ArknightsGacha, GachaUser
from arknights_toolkit.gacha.simulate import simulate_image
from pathlib import Path
import asyncio


async def main():
    gacha = ArknightsGacha("path/to/gacha.json")
    user = GachaUser()
    data = gacha.gacha(user, 10)
    img = await simulate_image(data[0])
    with Path("example_sim.png").open("wb+") as f:
        f.write(img)

asyncio.run(main())

抽卡结果:

抽卡结果

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

arknights_toolkit-0.8.1-py3-none-any.whl (24.2 MB view details)

Uploaded Python 3

File details

Details for the file arknights_toolkit-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for arknights_toolkit-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7161463af916a7e5eae1c1598167a10b70c4d7e92bb73dbd8297d0b677336e0
MD5 e946a166ccfeb0d2004625ac3a33c1f4
BLAKE2b-256 1ccd123bf242ad213bbed0cbc6a9df263122c968dc11ae2274e36e91a85295f6

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