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.7.tar.gz
(17.4 MB
view details)
Built Distribution
File details
Details for the file arknights_toolkit-0.7.7.tar.gz
.
File metadata
- Download URL: arknights_toolkit-0.7.7.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 | dddc6c33ce8180bcbbd22b98c7130ab1d9cb6f851bb1b98d4dac104f94e02e7d |
|
MD5 | f35c330b57c3e93a6c3197e28ef4349b |
|
BLAKE2b-256 | f732eee32cb39b1a5ff000861939fc859b585a5929f8ca65f0f22786d4425b6d |
File details
Details for the file arknights_toolkit-0.7.7-py3-none-any.whl
.
File metadata
- Download URL: arknights_toolkit-0.7.7-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 | d15674231941fa40cbb11c4e34143ab4073cb9281edb9fbe18abb37750e0a4f3 |
|
MD5 | f2b17245807d6210a74b31eae832bdf3 |
|
BLAKE2b-256 | d0c65777ce02af0b5784bcc6320b722a86ba78da57c7372c156bedccb1c3f272 |