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.6.tar.gz (53.9 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.6-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.20.6.tar.gz
  • Upload date:
  • Size: 53.9 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.6.tar.gz
Algorithm Hash digest
SHA256 adc80ee2f0e70c72e2bc17c91e33b5a25d91a226463d6f7fb2d27382ae917d1c
MD5 19d9bc5923aa981fff7f9d7eaf4080a9
BLAKE2b-256 a88e97a7811deb84720ec02e53de49c193eb36d69c5c88717d89ec61303c5544

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hearthstone-9.20.6-py3-none-any.whl
  • Upload date:
  • Size: 49.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8cbb0e1c4b57597a280de561551a8dc30c312a58b9dd23e2fb372b8d1e8c60
MD5 8a6545aeba4fa35a2092c23decbc62e2
BLAKE2b-256 5ac75bde98d4ed1890588ce1653834d6d330fecf61bd3f34570ba4088809bdd0

See more details on using hashes here.

Provenance

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