https://github.com/HearthSim/python-hearthstone
Hearthstone Python library (CardDefs, DBF, enums, log parser)
https://github.com/HearthSim/python-hearthstone
hearthstone
Last synced: about 1 year ago
JSON representation
Hearthstone Python library (CardDefs, DBF, enums, log parser)
- Host: GitHub
- URL: https://github.com/HearthSim/python-hearthstone
- Owner: HearthSim
- License: mit
- Created: 2015-09-09T08:47:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-18T18:00:43.000Z (about 1 year ago)
- Last Synced: 2025-04-14T11:13:03.208Z (about 1 year ago)
- Topics: hearthstone
- Language: Python
- Homepage:
- Size: 867 KB
- Stars: 253
- Watchers: 27
- Forks: 62
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-hearthstone
[](https://github.com/HearthSim/python-hearthstone/actions/workflows/ci.yml)
[](https://pypi.org/project/hearthstone/)
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](https://github.com/HearthSim/python-hearthstone-data)
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](https://hearthsim.info) project.
Join the HearthSim Developer community [on Discord](https://discord.gg/hearthsim-devs).