Arknights-related Toolkit
Project description
明日方舟(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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for arknights_toolkit-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59dceb6fbfc17ecfd8ce1f70cf6a4ae3882046ed7d3469543ecfa7329c3d7d69 |
|
MD5 | 88ac3935bf0b034ad86fba19bae23a76 |
|
BLAKE2b-256 | 5e0cc78dfc8e85b7cdd12100016c2a30d48bbfde6f4a85f7e6efbfdc2627766b |