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 normalize names to lowercase before matching (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.csvrelic.csvhero.csvplay.csvrelic_availability.csvcard_upgrade.csv
Upgrade metadata format (card_upgrade.csv):
nameCard;hasUpgrade;costUpgraded;descriptionUpgraded
Credits
This repository is adapted from the original project by Ferdomgar97
Metadata
Release files for stsdb 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stsdb-0.3.0.tar.gz | 27.4 kB | Without provenance | Details for stsdb-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stsdb-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for stsdb-0.3.0-py3-none-any.whl |
Total release size: 61.5 kB
Release files / stsdb-0.3.0.tar.gz
| Download URL | stsdb-0.3.0.tar.gz |
|---|---|
| Size | 27.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b4c031fa523113bdc2b3ed1bd3f3fa94d44ae65bda28f75e9e610c174b07051
|
|
BLAKE2b-256 checksum How to use checksums |
d85e4bfa703683ea7dbde92d037c5365832210f2abb9d6c43457031b42219417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|
Release files / stsdb-0.3.0-py3-none-any.whl
| Download URL | stsdb-0.3.0-py3-none-any.whl |
|---|---|
| Size | 34.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46c97d4330811ca23de08aa2c2a7c1b8f73df52cafd2e8fd77d7981ffeb9ef4c
|
|
BLAKE2b-256 checksum How to use checksums |
2fae7b5b321608d52e138793ddd16933513b076462a71a227221df8512c5abfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|
Security for stsdb 0.3.0
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.