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.7.6.tar.gz
(17.4 MB
view details)
Built Distribution
File details
Details for the file arknights_toolkit-0.7.6.tar.gz
.
File metadata
- Download URL: arknights_toolkit-0.7.6.tar.gz
- Upload date:
- Size: 17.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9faa74243e621b0fd694d7ccd04974ab1efa22608a83a3422e3ea5c7d62c5573 |
|
MD5 | b4ffa73a84d15ed9343b0221d7939985 |
|
BLAKE2b-256 | 59e9e56dec62231b543d62be3ae815607f2c9b58153bb7f61994efc63c40dc35 |
File details
Details for the file arknights_toolkit-0.7.6-py3-none-any.whl
.
File metadata
- Download URL: arknights_toolkit-0.7.6-py3-none-any.whl
- Upload date:
- Size: 17.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05771d784f0c4eaa4957c2531cf21f3ac43e03b3870fd50795b5d88772f171c3 |
|
MD5 | be2f349d5fae9f5463ca00d0d62ad966 |
|
BLAKE2b-256 | aa37024ac1300933e9095dc8a67717afb482457ccbcbd52372e1416e4fefb1fb |