Skip to main content

This CLI can be used to easily convert TavernAI character \images to JSON for the different pygmalion Web-UIs.

Project description

TAIConvert

Changelog License PyPi Version

This CLI can be used to easily convert TavernAI character images to JSON for the different pygmalion Web-UIs.

Index

Installation

Install this tool using pipx:

$ pipx install taiconvert

Normal pip installation is also possible:

$ pip install taiconvert

You can also used the pre-built pyinstaller binary from the releases page.

Usage

For help, run:

$ taiconvert --help

You can also use:

$ python -m taiconvert --help

Conversion

To convert a single image, run:

$ taiconvert convert <path/to/image>

The output will be written to <imagename>.pygmalion.json in the same directory as the image.

To convert multiple images, run:

$ taiconvert convert <path/to/image1> <path/to/image2> <path/to/image3> ...

Extraction

To extract the character json from a TavernAI character image file, run:

$ taiconvert extract <path/to/image>

The output will be written to <imagename>.tavernai.json in the same directory as the image.

To extract multiple images, run:

$ taiconvert extract <path/to/image1> <path/to/image2> <path/to/image3> ...

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

$ pipx install virtualenv
$ cd taiconvert
$ virtualenv .venv
$ .venv/Scripts/activate

Now install the dependencies and install the pre-commit hooks:

$ pip install -e '.[dev]'
$ pre-commit install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taiconvert-0.2.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

taiconvert-0.2.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page