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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 998fdba431e13b6e8c5bc45a7c2d6fe89b69903500e5a9613fb4542a0400f818 |
|
MD5 | 6a790545167b801110d502397b88cf02 |
|
BLAKE2b-256 | ed5bb44dc26d718c0e0a6c737d23a2796647a1c3a6508e1b51af9e1ec7bf709a |