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.8.0.tar.gz
(24.2 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arknights_toolkit-0.8.0.tar.gz.
File metadata
- Download URL: arknights_toolkit-0.8.0.tar.gz
- Upload date:
- Size: 24.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63126a481646e6d4415a7562404dfb10d46b560a36a981b59f29297a85afd1df
|
|
| MD5 |
27f061cf7e5f33a09e2c989e34627b88
|
|
| BLAKE2b-256 |
fa22c4eaf0149eb7b69e95037c63a251c8e98b40b79cbc9198fbb17f2a9c73e9
|
File details
Details for the file arknights_toolkit-0.8.0-py3-none-any.whl.
File metadata
- Download URL: arknights_toolkit-0.8.0-py3-none-any.whl
- Upload date:
- Size: 24.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bd102680d755d8231eed1a83de1b89fa8320541da912ed0bef67465817a801d
|
|
| MD5 |
3eec9967889e4e69212119f5da72d161
|
|
| BLAKE2b-256 |
11760bd75ec4232fd1fbf47fd2bcd250f079341d74d39c2e87c214f10e8239fc
|