Arknights-related Toolkit
Project description
明日方舟(Arknights) 相关功能的整合库
现拥有如下功能:
- 抽卡
- 模拟十连
- 随机干员生成
- 公招链接生成
欢迎 PR
安装
pip install arknights-toolkit
pdm add arknights-toolkit
示例
from arknights_toolkit.gacha 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
arknights-toolkit-0.1.1.tar.gz
(487.7 kB
view hashes)
Built Distribution
Close
Hashes for arknights_toolkit-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 158b204778a3ac91a25bd6f46f68bc725f842ef366b7c623e0d51e5c87a10539 |
|
MD5 | 2e77bf839f488cef660fc9623c439f23 |
|
BLAKE2b-256 | d179bb7dc5178ce575e5023ae491f59ddfbd05c589870925b3169416ba2e3232 |