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.5.tar.gz (53.6 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.5-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.20.5.tar.gz
  • Upload date:
  • Size: 53.6 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.5.tar.gz
Algorithm Hash digest
SHA256 d44adc2a662549b7618dbb844517c868e3617644997c3aa99a83a112443bbcac
MD5 87f04110e685583f05151847cea4312d
BLAKE2b-256 3868857720d3bc8b7f62d78695206c7c9e84fe6f1b202e47be0427520accf10a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hearthstone-9.20.5-py3-none-any.whl
  • Upload date:
  • Size: 49.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d9e6579d859ff8ea667ff9c8e727c3b3fc3edeb139eaea27c1e8a685291982
MD5 5eebc69cb2b36602eac1152724e1e4a1
BLAKE2b-256 6132f3ce722682ff59507ebbecaf6f335345bc8c4d14693a8fac3fb6b75dc878

See more details on using hashes here.

Provenance

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