Arknights-related Toolkit
Project description
明日方舟(Arknights) 相关功能的整合库
现拥有如下功能:
- 抽卡
- 模拟十连
- 随机干员生成
- 公招链接生成
欢迎 PR
安装
pip install arknights-toolkit
pdm add arknights-toolkit
示例
from arknights_toolkit 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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c7b4ffa1332edac8dd5315fec4d43c4b367098712ccffc83ea3998d51530fe |
|
MD5 | e6906affbb1020221a44e47ca9907394 |
|
BLAKE2b-256 | 9af131f115e62ce5dd00f0cd623c13c62e0d482bfa9bffac13fac208345a2f6b |