Skip to main content

CardDefs.xml parser and Hearthstone enums for Python

Project description

python-hearthstone

GitHub Workflow Status PyPI

A Hearthstone Python library containing:

  • A CardDefs.xml parser (hearthstone.cardxml)
  • A DbfXml parser (hearthstone.dbf)
  • A deck code encoder and decoder (hearthstone.deckstrings)
  • Hearthstone enums as IntEnum (hearthstone.enums)

The CardDefs.xml data for the latest build can optionally be installed from the python-hearthstone-data repository or on PyPI with pip install hearthstone_data. Otherwise, they will be download at runtime.

Requirements

  • Python 3.6+
  • lxml

Installation

  • To install from PyPI: pip install hearthstone

License

This project is licensed under the MIT license. The full license text is available in the LICENSE file.

Community

This is a HearthSim project. Join the HearthSim Developer community on Discord.

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 Distribution

hearthstone-9.19.9.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

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

hearthstone-9.19.9-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file hearthstone-9.19.9.tar.gz.

File metadata

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

File hashes

Hashes for hearthstone-9.19.9.tar.gz
Algorithm Hash digest
SHA256 9e76ff19445760f4752ae2c070f3f629ee4872d44cf63d3dbff5a32b08435efe
MD5 a6a32060df1ec7ce78839f49ccd57811
BLAKE2b-256 a700286282154cb23d9acbd4180fc55498324e1141cd1478f838b0c62d106344

See more details on using hashes here.

Provenance

The following attestation bundles were made for hearthstone-9.19.9.tar.gz:

Publisher: ci.yml on HearthSim/python-hearthstone

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

File details

Details for the file hearthstone-9.19.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hearthstone-9.19.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f4328168d9740d9118e6af72875882fc74d59f5b7a38f2492115fe7efe977ac1
MD5 6f1c6d5ca40bc7ef510bc32cc83590db
BLAKE2b-256 f255c81a0fb97f07ec1f2bcc7319affa353ce8afe3656f7139b29a9b2d0a264d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hearthstone-9.19.9-py3-none-any.whl:

Publisher: ci.yml on HearthSim/python-hearthstone

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