Arknights-related Toolkit
Project description
明日方舟(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
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
arknights-toolkit-0.5.2.tar.gz
(17.4 MB
view hashes)
Built Distribution
Close
Hashes for arknights_toolkit-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7855d0d49644f3edc09a96344bdaa8a3af94d73ca67e8f1c9532dcdb5a2e1598 |
|
MD5 | 176efa658a071fb695c80e66c7a0c24a |
|
BLAKE2b-256 | 4c03a44f0544973622d8b3a599163330cbc3f2e8cb8d5c638d4122fdccb135e5 |