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

Uploaded Source

Built Distribution

hearthstone-9.17.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hearthstone-9.17.0.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hearthstone-9.17.0.tar.gz
Algorithm Hash digest
SHA256 41f434f1ed0ff793a8d60116fde249b5f7c40bb08140c57fc0c728ee22e3b9c7
MD5 4af880d688126c906bdf3ca955b51935
BLAKE2b-256 52eb44a7607186cceb8707608370fdfbd8be603271c832364b9d6cd991321544

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hearthstone-9.17.0-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hearthstone-9.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fad0819869791e70e87939da631c73167cad4b1ad551163dd9b22f898cf36eda
MD5 4b7f41d042f4fc8a5eb7ed467468c48b
BLAKE2b-256 f7bce6a2ed1825d03e4449ba9bc9839633a212d117cea3b05f3f1afe3072dd76

See more details on using hashes here.

Provenance

The following attestation bundles were made for hearthstone-9.17.0-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page