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.4.tar.gz (53.5 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.4-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.20.4.tar.gz
  • Upload date:
  • Size: 53.5 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.4.tar.gz
Algorithm Hash digest
SHA256 d586f7972f0d26d331aa66f8752c9e779d838dcb4264ca3f8479fa7b58a34ec0
MD5 0b50d69e1089d819f45018bbaf7f0a09
BLAKE2b-256 a5942a4250811e0484958fd944dea940083bfbf999135608508b9aa7816e44c0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hearthstone-9.20.4-py3-none-any.whl
  • Upload date:
  • Size: 48.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d5109389c048637f799e3ac1cf9c63d23e64c0450132b72931d79c6cf742550f
MD5 679ca44d3a99fce1c48b0e60e719b93e
BLAKE2b-256 0277f5f07d55283f5d28adfe45844dffd704d8977032186d4de2001418db2fe3

See more details on using hashes here.

Provenance

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