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.3.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.3-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.20.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a6e78afec2e03b7d06ff3dd748366a6aa38c139302cf04da8fce87e452c2db91
MD5 82f4c754311202095740e0cd789a4970
BLAKE2b-256 b128320f5d50a1fb386da66de2a01acdd47df4eb0cb80c4d8999fdab20b62f7c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hearthstone-9.20.3-py3-none-any.whl
  • Upload date:
  • Size: 48.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71eaff81e7a0324c0f2a5da99e31c75554cf1b6227e2b9bdefa600d51538d48e
MD5 e74ba08e5aad44d437676e42549951d7
BLAKE2b-256 90bdf9c492bce235fb21fd901a2b481fdf2452c2df8714e4335144fcb13e640c

See more details on using hashes here.

Provenance

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