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.20.2.tar.gz (53.4 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.20.2-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hearthstone-9.20.2.tar.gz
Algorithm Hash digest
SHA256 2a5c6c119bf2bdd534d1b924c16ac40750f95696d69db20d5362eb2ed258129c
MD5 db5d009b5df7f48acdd6088565d59134
BLAKE2b-256 48ec216728952374335ad8428a3a8c2ca88cfe333ca31f1ec3dd2286ea720a05

See more details on using hashes here.

Provenance

The following attestation bundles were made for hearthstone-9.20.2.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.20.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hearthstone-9.20.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3be4e2e3d95825d52c38e6994e6c4171330a824df7b1c817adbdbbebb2bd197
MD5 2bedba7ee86bc4170ee2f915a628adc0
BLAKE2b-256 7d9e4e9de3a28ba07eb1b6a737c1c8494f0fc6da2862503bafac2a92a9460710

See more details on using hashes here.

Provenance

The following attestation bundles were made for hearthstone-9.20.2-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