Precompiled Rust deck recommendation engine for Python and LunaBot integrations
Project description
allium-sekai-deck
Precompiled Python bindings for the Allium Sekai deck recommendation engine. The package includes the Rust card-pool, rule evaluation, and DFS search logic, so users do not need Rust, Cargo, or a local compiler.
It provides two Python interfaces:
allium_deck: a compact API for new integrations.sekai_deck_recommend_cpp: the object and import surface used by LunaBot's C++ deck recommendation integration.
Installation
pip install allium-sekai-deck
Precompiled abi3 wheels support CPython 3.10 and newer on:
- Linux x86_64 and aarch64
- Windows x86_64
- macOS x86_64 and Apple Silicon
Imports
from allium_deck import Engine, RecommendOptions, RecommendResult, UserData
Existing LunaBot integrations can keep their current namespace:
from sekai_deck_recommend_cpp import (
DeckRecommendOptions,
DeckRecommendUserData,
SekaiDeckRecommend,
)
Masterdata, music metadata, and user data remain runtime inputs and are not bundled into the wheel. The recommendation engine uses Allium's DFS search.
API coverage
The sekai_deck_recommend_cpp interface includes the complete LunaBot deck
workflow:
- mutable option, user-data, card, deck, support-deck, and result objects
- single and batch recommendation
- World Bloom support-deck calculation
- area-item upgrade recommendation
- per-music score and event-point calculation
- note-level exact live calculation
- configurable batch worker count
Each recommendation result includes cost_ms, the wall-clock time spent in the
native search itself. Batch results report this value independently for every
request.
License
MIT
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 996.7 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6420bf8b7483b0329f38f0f63a21571a2137fef0645593b366cdd19612170f58
|
|
| MD5 |
7992821c42d59b99700a6b44e4c54f2c
|
|
| BLAKE2b-256 |
9f69682e7d6155af04d5fd08978c29b7e1ef9515ad997cad5eab5300bda1ddd1
|
Provenance
The following attestation bundles were made for allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl:
Publisher:
wheels.yml on empty-sekai/allium-deck-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl -
Subject digest:
6420bf8b7483b0329f38f0f63a21571a2137fef0645593b366cdd19612170f58 - Sigstore transparency entry: 2172563940
- Sigstore integration time:
-
Permalink:
empty-sekai/allium-deck-python@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/empty-sekai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d822e56fb9bed76522ae739d6a7a91f6a48178446cec77a6976c6cda10eda453
|
|
| MD5 |
58253a11e02547dd761fc963900bb709
|
|
| BLAKE2b-256 |
2ff616a03f01f10e35ac259476fc22fdd3cbd9714cf71b04fac3b71d79ea14aa
|
Provenance
The following attestation bundles were made for allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on empty-sekai/allium-deck-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
d822e56fb9bed76522ae739d6a7a91f6a48178446cec77a6976c6cda10eda453 - Sigstore transparency entry: 2172563924
- Sigstore integration time:
-
Permalink:
empty-sekai/allium-deck-python@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/empty-sekai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d7da479469b2f1e6777b833ec118655616479c45d3afd2d928878f8811312a
|
|
| MD5 |
b5251e2a9092b21194b7d3ecdccd4ba8
|
|
| BLAKE2b-256 |
1e252b903a84fa48eecb4372f7501dfd40e1212ce67374c76e52bb18e6e7475d
|
Provenance
The following attestation bundles were made for allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
wheels.yml on empty-sekai/allium-deck-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
76d7da479469b2f1e6777b833ec118655616479c45d3afd2d928878f8811312a - Sigstore transparency entry: 2172563950
- Sigstore integration time:
-
Permalink:
empty-sekai/allium-deck-python@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/empty-sekai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ba342dd84f2043b7a4dcf8e45b713a220d97ccc07ab4dd063995968df160c0
|
|
| MD5 |
f2c082c73ecf454076ff0c097d3b13c4
|
|
| BLAKE2b-256 |
a2b5d4069c8fdb778499d094c8d07fb693511e58216c18f220360c4f8356e56b
|
Provenance
The following attestation bundles were made for allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on empty-sekai/allium-deck-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
26ba342dd84f2043b7a4dcf8e45b713a220d97ccc07ab4dd063995968df160c0 - Sigstore transparency entry: 2172563961
- Sigstore integration time:
-
Permalink:
empty-sekai/allium-deck-python@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/empty-sekai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Trigger Event:
push
-
Statement type:
File details
Details for the file allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a51d1df36d235e07486bcee344e68d995eb1a5317d97c8a5d4776998ff0d15d8
|
|
| MD5 |
8915709240e089f1d4cbe5ca3c779828
|
|
| BLAKE2b-256 |
d97fc79e27d5988c601d9280f01f2f10e7e50422d6a7374cd41d2b6b5fd45c5e
|
Provenance
The following attestation bundles were made for allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl:
Publisher:
wheels.yml on empty-sekai/allium-deck-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl -
Subject digest:
a51d1df36d235e07486bcee344e68d995eb1a5317d97c8a5d4776998ff0d15d8 - Sigstore transparency entry: 2172563930
- Sigstore integration time:
-
Permalink:
empty-sekai/allium-deck-python@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/empty-sekai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@58b37dbca23e2506f16f07faea7f1df3fcee7b5a -
Trigger Event:
push
-
Statement type: