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

示例

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


async def main():
    gacha = ArknightsGacha()
    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 Distribution

arknights-toolkit-0.2.0.tar.gz (966.2 kB view hashes)

Uploaded Source

Built Distribution

arknights_toolkit-0.2.0-py3-none-any.whl (973.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page