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.4

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.4
File Size Uploaded Provenance Actions
arknights_toolkit-0.8.4.tar.gz 24.2 MB Without provenance Details for arknights_toolkit-0.8.4.tar.gz

Built distribution (wheel)

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

Total release size: 48.4 MB

Release files / arknights_toolkit-0.8.4.tar.gz

Download URL arknights_toolkit-0.8.4.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
2c74139df0fe65157d151d395c5377ce5d853e091feaf722103abe11efddbed5
BLAKE2b-256 checksum
How to use checksums
7aee720f1ec31ac455ec7ad2a8eefdbc932034f5c2279f8a06810ec2bf92a247
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.4-py3-none-any.whl

Download URL arknights_toolkit-0.8.4-py3-none-any.whl
Size 24.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d063f2b01ce04f2efee0f03e7acff709aa596e92d030a6cedad740ef5ed689a3
BLAKE2b-256 checksum
How to use checksums
d8369f6beb0a688b960b0afe315db458fe5598f3d2a6c0054da9111cc0344369
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.4

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.4 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