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

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.2
File Size Uploaded Provenance
arknights_toolkit-0.8.2.tar.gz 24.2 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 48.4 MB

Release files / arknights_toolkit-0.8.2.tar.gz

Download URL arknights_toolkit-0.8.2.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1bc6523eddfa279a0e8258d59bdb89a838a75a961087286cc0d070c7ae53e090
BLAKE2b-256 checksum
How to use checksums
79ec987b65f7bed6f90686df7c40a450b700d5ec0e7fb27ca8f4b4b39ef75a08
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.2-py3-none-any.whl

Download URL arknights_toolkit-0.8.2-py3-none-any.whl
Size 24.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
abc476ac96fe7b4e2cefaee8c414d714c2e59cdec0cb3fbf7a6f24fd7392883f
BLAKE2b-256 checksum
How to use checksums
e3ead2b3ede8fc5cfab2ac3048d04c7921506f3294cf8fc2cdbb1563d386ccf3
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.2

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.

Release history Release notifications | RSS feed

This release

0.8.2 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