Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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).