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.11.0.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

hearthstone-9.11.0-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.11.0.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hearthstone-9.11.0.tar.gz
Algorithm Hash digest
SHA256 4302368192330a28b9fac85ceff8178c80b20198a1564f22de3ecd26dd6a2dee
MD5 f5233097ba9eab88bf2168a12830a161
BLAKE2b-256 6fad4764b952d113dc55e5a7efdd3b81b108af2ae2f69960a35b482333842336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hearthstone-9.11.0-py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hearthstone-9.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 660b26901f453a040504130d8ba10bd14702d4f17ba7ad1effa342fcff8ca3e7
MD5 91e82d6c2fd99e705c184f701c4b5e88
BLAKE2b-256 36451a5cca72958d0c991293756215ae765c8a00772134fcd6c9ae0be2a5c67e

See more details on using hashes here.

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