Manacost Labs Hearthstone Deckstrings for Python
A dependency-free Python 3.10+ implementation of the shared deckstring contract in this repository.
python -m pip install manacost-deckstrings
Usage
from manacost_deckstrings import canonicalize, decode, encode, validate
deck = decode("AAEBAQcBBAMBAgMAAA==")
result = validate(deck)
canonical_deck = canonicalize(deck)
deckstring = encode(deck)
Full Hearthstone clipboard exports are supported without card data or network access:
from manacost_deckstrings import format_export, parse_export
parsed = parse_export(export_text)
text = format_export(parsed["deck"], parsed["metadata"])
format_export also accepts an optional resolver callable. It receives a card
DBF ID and returns {"name": "Card", "cost": 3} or None.
Errors
The returned dictionary follows the shared deck schema.
Invalid input raises DeckstringError. Its code attribute follows the shared
error contract;
callers should not match the human-readable message.
The package is release-ready for PyPI. Published releases use semantic versioning and support Python 3.10 through 3.14.
Release files for manacost-deckstrings 1.0.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 | |
|---|---|---|---|
| manacost_deckstrings-1.0.0.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| manacost_deckstrings-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB
Release files / manacost_deckstrings-1.0.0.tar.gz
| Download URL | manacost_deckstrings-1.0.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07e935ab025152d63e8a4ab28c90c1f5cdf4e9cf4f36f79082723c3132f987bd
|
|
BLAKE2b-256 checksum How to use checksums |
afaa6bab78bf873d89dadeaee276966bb6e61d1d462330180b6cc6ca7c416fed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency logRelease files / manacost_deckstrings-1.0.0-py3-none-any.whl
| Download URL | manacost_deckstrings-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ab544215630915bcd7552022583df9f53bab88d50b4801deb5f5facfe02dcd8
|
|
BLAKE2b-256 checksum How to use checksums |
277040c195a45edce850ff2f412d8879ddeb32b2471f3db341c403f318c3af7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.
Transparency log