Skip to main content

CardDefs.xml parser and Hearthstone enums for Python

Project description


GitHub Workflow Status PyPI

A Hearthstone Python library containing:

  • A CardDefs.xml parser (hearthstone.cardxml)
  • A DbfXml parser (hearthstone.dbf)
  • Hearthstone enums as IntEnum (hearthstone.enums)

The log parser previously in hearthstone.hslog has moved to the python-hslog project.

The CardDefs.xml data for the latest build is available in the python-hearthstone-data repository or on PyPI with pip install hearthstone_data.


  • Python 3.6+
  • lxml


  • To install from PyPI: pip install hearthstone


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


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-7.7.1.tar.gz (42.2 kB view hashes)

Uploaded source

Built Distribution

hearthstone-7.7.1-py3-none-any.whl (45.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page