Skip to main content

Deterministic Slay the Spire card and relic query toolset

Project description

Slay the Spire Database (stsdb)

A card/relic query toolset for Slay the Spire.

It exposes two main commands:

  • query_card: query card metadata, with optional upgrade level.
  • query_relic: query relic metadata.

Both commands use exact name matching only (no fuzzy match, no partial match, no fallback).

query_card also supports upgrade_times:

  • Most cards: capped at one applied upgrade.
  • Searing Blow: supports unbounded upgrades using the in-game scaling rule.

Installation

pip install stsdb

Dev installation:

pip install -e .

Usage

stsdb query_card "Bash"
stsdb query_card "Searing Blow" --upgrade-times 3
stsdb query_relic "Burning Blood"
python -m stsdb query_card "Bash"

Python API

import stsdb
from stsdb import query_card, query_relic

stsdb.query_card("Bash")
query_card("Bash")
query_card("Searing Blow", upgrade_times=3)
query_relic("Burning Blood")

Local development

Install in development mode:

pip install -e .

Run tests:

python -m unittest discover -s tests -v

Output

  • Success: {"found": true, "entry": {...}}
  • Card miss: {"found": false, "error": "CARD_NOT_FOUND"}
  • Invalid upgrade input: {"found": false, "error": "INVALID_UPGRADE_TIMES"}
  • Relic miss: {"found": false, "error": "RELIC_NOT_FOUND"}

Other Notes

Data files are shipped inside the package under stsdb/data/:

  • card.csv
  • relic.csv
  • hero.csv
  • play.csv
  • relic_availability.csv
  • card_upgrade.csv

Upgrade metadata format (card_upgrade.csv):

  • nameCard;hasUpgrade;costUpgraded;descriptionUpgraded

Credits

This repository is adapted from the original project by Ferdomgar97

Project details


Download files

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

Source Distribution

stsdb-0.1.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

stsdb-0.1.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file stsdb-0.1.1.tar.gz.

File metadata

  • Download URL: stsdb-0.1.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stsdb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4845063d1fcc2c8aba381d302d9bed57cb873da909404ee41edcbd80c67bb496
MD5 6be0cff1bf3a93b66b6e045057f6c837
BLAKE2b-256 ff8e1b88f154dd8bdd7e95ad345157b39e93fa3dbff19328ea225d650125559e

See more details on using hashes here.

Provenance

The following attestation bundles were made for stsdb-0.1.1.tar.gz:

Publisher: publish.yml on Taardisaa/StSDatabase

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

File details

Details for the file stsdb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: stsdb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stsdb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5704eb99c7e25838e144dd82ae719da8cf4af9c024375d15471809d4430cde45
MD5 456e78e99fe68547fe4b134d04199e78
BLAKE2b-256 fd1af78c773f6b2c386420f9120eb7ab6c7cc11ede1091b2667266dbc1f387b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for stsdb-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Taardisaa/StSDatabase

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