明日方舟(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())
抽卡结果:
Metadata
Release files for arknights-toolkit 0.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| arknights_toolkit-0.8.3.tar.gz | 24.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arknights_toolkit-0.8.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.4 MB
Release files / arknights_toolkit-0.8.3.tar.gz
| Download URL | arknights_toolkit-0.8.3.tar.gz |
|---|---|
| Size | 24.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3d8d9c876ca5c5757400cdf873e6a7c11f0f0cd76bf45f01f0674296cb8e721
|
|
BLAKE2b-256 checksum How to use checksums |
d15c4343aa41f325728eb2056bfb9232e53e96da9b522534eb348cbffc755f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.28.0 CPython/3.11.7 Windows/10
|
Release files / arknights_toolkit-0.8.3-py3-none-any.whl
| Download URL | arknights_toolkit-0.8.3-py3-none-any.whl |
|---|---|
| Size | 24.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e1c47db4abd388f4f58ee0f1f93dc354e6ca731848e5b86c8c0b67f02688e4c
|
|
BLAKE2b-256 checksum How to use checksums |
cc5dcd4c8ab8c46d2a723402e3d5bb6affb1df2bcf20989a72b7003cb3a8a0ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.28.0 CPython/3.11.7 Windows/10
|
Security for arknights-toolkit 0.8.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.