Metadata-Version: 2.1
Name: bierstadt
Version: 0.2.0
Summary: Library and command line tool to handle CK2 portrait files
Home-page: https://github.com/krateng/bierstadt
Author: Johannes Krattenmacher
Author-email: misc@krateng.dev
License: GPLv3
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: doreah (>=1.4.5)
Requires-Dist: wand (>=0.5.4)
Requires-Dist: pillow (>=7.0.0)

# Bierstadt

[![](https://img.shields.io/pypi/v/bierstadt?style=for-the-badge)](https://pypi.org/project/bierstadt/)
[![](https://img.shields.io/pypi/dm/bierstadt?style=for-the-badge)](https://pypi.org/project/bierstadt/)
[![](https://img.shields.io/github/stars/krateng/ck2suite?style=for-the-badge&color=purple)](https://github.com/krateng/ck2suite/stargazers)
[![](https://img.shields.io/pypi/l/bierstadt?style=for-the-badge)](https://github.com/krateng/ck2suite/blob/master/LICENSE)

A library and command line tool to handle CK2 portrait files

## Install

Install with `pip install bierstadt`. Make sure to use `pip3` if Python 3 isn't your default version.


## Use from command line

`bierstadt create *[files]*` combines all listed files into a CK2-ready portrait sprite.

`bierstadt create *file* -t trait` creates a trait icon.

`bierstadt insert *source* *target* *index*` inserts the source file into the existing target sprite at the specified index.

## Use from code

`bierstadt.library` exposes classes to handle various image types.


