# 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).
Raw data
{
"_id": null,
"home_page": "https://github.com/HearthSim/python-hearthstone/",
"name": "hearthstone",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Jerome Leclanche",
"author_email": "jerome@leclan.ch",
"download_url": "https://files.pythonhosted.org/packages/3c/2a/698631e39b79095f59d9991443538252794c2b50cdfff174a7438930383e/hearthstone-9.19.2.tar.gz",
"platform": null,
"description": "# python-hearthstone\n\n[](https://github.com/HearthSim/python-hearthstone/actions/workflows/ci.yml)\n[](https://pypi.org/project/hearthstone/)\n\nA Hearthstone Python library containing:\n\n* A CardDefs.xml parser (`hearthstone.cardxml`)\n* A DbfXml parser (`hearthstone.dbf`)\n* A deck code encoder and decoder (`hearthstone.deckstrings`)\n* Hearthstone enums as IntEnum (`hearthstone.enums`)\n\nThe CardDefs.xml data for the latest build can optionally be installed from the\n[python-hearthstone-data repository](https://github.com/HearthSim/python-hearthstone-data)\nor on PyPI with `pip install hearthstone_data`. Otherwise, they will be download at runtime.\n\n\n## Requirements\n\n* Python 3.6+\n* lxml\n\n## Installation\n\n* To install from PyPI: `pip install hearthstone`\n\n\n## License\n\nThis project is licensed under the MIT license. The full license text is\navailable in the LICENSE file.\n\n\n## Community\n\nThis is a [HearthSim](https://hearthsim.info) project.\nJoin the HearthSim Developer community [on Discord](https://discord.gg/hearthsim-devs).\n",
"bugtrack_url": null,
"license": null,
"summary": "CardDefs.xml parser and Hearthstone enums for Python",
"version": "9.19.2",
"project_urls": {
"Download": "https://github.com/HearthSim/python-hearthstone/tarball/master",
"Homepage": "https://github.com/HearthSim/python-hearthstone/"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "069267a1496470fbd1a0999bdfd83cd71782160885d932e1722bc1b2f729f1f5",
"md5": "b56547eab0f9d813acacdc188cc77b4e",
"sha256": "ce8ecfa833c9c81ddf720d7b69d53a0ebfd354c037fecc572e9f95fa12192ff9"
},
"downloads": -1,
"filename": "hearthstone-9.19.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b56547eab0f9d813acacdc188cc77b4e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 48072,
"upload_time": "2025-10-28T17:39:03",
"upload_time_iso_8601": "2025-10-28T17:39:03.885561Z",
"url": "https://files.pythonhosted.org/packages/06/92/67a1496470fbd1a0999bdfd83cd71782160885d932e1722bc1b2f729f1f5/hearthstone-9.19.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3c2a698631e39b79095f59d9991443538252794c2b50cdfff174a7438930383e",
"md5": "f24a363f76cd379c2a3bb6a9dff8561f",
"sha256": "a86e1b8052bf29a66e54fe5d30dbd24179eb7059e4afe2d6895ae7ba1a94e278"
},
"downloads": -1,
"filename": "hearthstone-9.19.2.tar.gz",
"has_sig": false,
"md5_digest": "f24a363f76cd379c2a3bb6a9dff8561f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 45187,
"upload_time": "2025-10-28T17:39:05",
"upload_time_iso_8601": "2025-10-28T17:39:05.738269Z",
"url": "https://files.pythonhosted.org/packages/3c/2a/698631e39b79095f59d9991443538252794c2b50cdfff174a7438930383e/hearthstone-9.19.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-28 17:39:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HearthSim",
"github_project": "python-hearthstone",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "hearthstone"
}