Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HearthSim/python-hearthstone
Hearthstone Python library (CardDefs, DBF, enums, log parser)
https://github.com/HearthSim/python-hearthstone
hearthstone
Last synced: about 2 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T07:41:56.000Z (about 2 months ago)
- Last Synced: 2024-07-20T02:50:53.080Z (about 2 months ago)
- Topics: hearthstone
- Language: Python
- Homepage:
- Size: 925 KB
- Stars: 232
- Watchers: 28
- Forks: 61
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-hearthstone
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/hearthsim/python-hearthstone/ci.yml?branch=master)](https://github.com/HearthSim/python-hearthstone/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/hearthstone.svg)](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).