Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl (996.7 kB view details)

Uploaded CPython 3.10+Windows x86-64

allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for allium_sekai_deck-0.0.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6420bf8b7483b0329f38f0f63a21571a2137fef0645593b366cdd19612170f58
MD5 7992821c42d59b99700a6b44e4c54f2c
BLAKE2b-256 9f69682e7d6155af04d5fd08978c29b7e1ef9515ad997cad5eab5300bda1ddd1

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d822e56fb9bed76522ae739d6a7a91f6a48178446cec77a6976c6cda10eda453
MD5 58253a11e02547dd761fc963900bb709
BLAKE2b-256 2ff616a03f01f10e35ac259476fc22fdd3cbd9714cf71b04fac3b71d79ea14aa

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for allium_sekai_deck-0.0.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 76d7da479469b2f1e6777b833ec118655616479c45d3afd2d928878f8811312a
MD5 b5251e2a9092b21194b7d3ecdccd4ba8
BLAKE2b-256 1e252b903a84fa48eecb4372f7501dfd40e1212ce67374c76e52bb18e6e7475d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for allium_sekai_deck-0.0.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26ba342dd84f2043b7a4dcf8e45b713a220d97ccc07ab4dd063995968df160c0
MD5 f2c082c73ecf454076ff0c097d3b13c4
BLAKE2b-256 a2b5d4069c8fdb778499d094c8d07fb693511e58216c18f220360c4f8356e56b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for allium_sekai_deck-0.0.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a51d1df36d235e07486bcee344e68d995eb1a5317d97c8a5d4776998ff0d15d8
MD5 8915709240e089f1d4cbe5ca3c779828
BLAKE2b-256 d97fc79e27d5988c601d9280f01f2f10e7e50422d6a7374cd41d2b6b5fd45c5e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page