Skip to main content

Arknights-Toolkit

Code style: black Imports: isort License pdm-managed PyPI

明日方舟(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.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arknights-toolkit 0.8.5
File Size Uploaded Provenance Actions
arknights_toolkit-0.8.5.tar.gz 24.2 MB Without provenance Details for arknights_toolkit-0.8.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arknights-toolkit 0.8.5
File Interpreter ABI Platform Actions
arknights_toolkit-0.8.5-py3-none-any.whl Python 3 none any Details for arknights_toolkit-0.8.5-py3-none-any.whl

Total release size: 48.4 MB

Release files / arknights_toolkit-0.8.5.tar.gz

Download URL arknights_toolkit-0.8.5.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fbd259a3ed6a0024a6922c2087d67954d01a6dabe6b27bb637ddde5048e16312
BLAKE2b-256 checksum
How to use checksums
5f596098123d15c8a977527b55a78b6198df6d9f2ac7ef84bf430125f0cb0e6f
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.5-py3-none-any.whl

Download URL arknights_toolkit-0.8.5-py3-none-any.whl
Size 24.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6b32c930444a1ec94deae65d9b7b8c97e5b05ac0175b60af7c4d610c511d554a
BLAKE2b-256 checksum
How to use checksums
9a2a55c14bd9649f5101f6204fa6846655e64cf399055dce6a8c0cecd01a83e2
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.5

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page