Skip to main content

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

Metadata

Release files for taiconvert 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taiconvert 0.2.1
File Size Uploaded
taiconvert-0.2.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taiconvert 0.2.1
File Interpreter ABI Platform
taiconvert-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / taiconvert-0.2.1.tar.gz

Download URL taiconvert-0.2.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
80c4925e42918502fb48a5e19116908ac341368cbf8c9c151352701dbca78cce
BLAKE2b-256 checksum
How to use checksums
36d71beb07a914fa042a6f49e4253d0e6794e5686f40835e8cd6345865e4bd0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / taiconvert-0.2.1-py3-none-any.whl

Download URL taiconvert-0.2.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be394b37b71b151dded90d9acbdb7513e6b6a2362cd2ca6439dbde7b419f54b1
BLAKE2b-256 checksum
How to use checksums
e694d363d32682aeb05de581fb4c36a20a2f985b850b945558c7b20ab8c01acd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page