This CLI can be used to easily convert TavernAI character \images to JSON for the different pygmalion Web-UIs.
Project description
TAIConvert
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taiconvert-0.2.1.tar.gz.
File metadata
- Download URL: taiconvert-0.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80c4925e42918502fb48a5e19116908ac341368cbf8c9c151352701dbca78cce
|
|
| MD5 |
388f9bc9bb0b4889455e433991371fdd
|
|
| BLAKE2b-256 |
36d71beb07a914fa042a6f49e4253d0e6794e5686f40835e8cd6345865e4bd0b
|
File details
Details for the file taiconvert-0.2.1-py3-none-any.whl.
File metadata
- Download URL: taiconvert-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be394b37b71b151dded90d9acbdb7513e6b6a2362cd2ca6439dbde7b419f54b1
|
|
| MD5 |
2223a28cc3b299cc865c4c17f1e34ea2
|
|
| BLAKE2b-256 |
e694d363d32682aeb05de581fb4c36a20a2f985b850b945558c7b20ab8c01acd
|