Python Ansilove
pyansilove is a port of the libansilove library to convert ANSi and artscene related file formats into PNG images.
Free software: BSD-2-Clause license
Features
The following formats are supported:
.ANS - ANSi (ANSI escape sequences: ANSI X3.64 standard)
TODO
Port support of formats:
.PCB - PCBoard Bulletin Board System (BBS) own file format
.BIN - Binary format (raw memory copy of text mode video memory)
.ADF - Artworx format, supporting custom character sets and palettes
.IDF - iCE Draw format, supporting custom character sets and palettes
.TND - TundraDraw format, supporting 24-bit color mode
.XB - The eXtended Binary XBin format, supporting custom character sets and palettes
Documentation
Usage
from pathlib import Path
from pyansilove.ansilove import AnsiLove
from pyansilove.schemas import AnsiLoveOptions, AnsiLoveRenderingMode
# https://16colo.rs/pack/break_05/h7-lark.nfo
AnsiLove.ansi(
Path('nfo.nfo'),
Path('nfo.png'),
options=AnsiLoveOptions(
# truecolor=True,
# diz=True,
# dos=True,
# mode=AnsiLoveRenderingMode.TRANSPARENT
)
)
# https://16colo.rs/pack/fire-36/US-TREMR.ANS
AnsiLove.ansi(
Path('US-TREMR.ANS'),
Path('US-TREMR.png'),
options=AnsiLoveOptions(
# diz=True,
# dos=True,
bits=9,
scale_factor=2,
# mode=AnsiLoveRenderingMode.TRANSPARENT,
)
)
License
pyansilove is released under the BSD 2-Clause license. See the file LICENSE for details.
Credits
Original code written by libansilove
Port to python by Bakasura
History
1.4.1 (2023-06-03)
First release on PyPI.
Metadata
Release files for pyansilove 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyansilove-1.4.1.tar.gz | 50.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyansilove-1.4.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 125.8 kB
Release files / pyansilove-1.4.1.tar.gz
| Download URL | pyansilove-1.4.1.tar.gz |
|---|---|
| Size | 50.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4d98712a2a65901ab4d99abc8fe4ef6bac00827557a39f47c148f6f71eb3ec6
|
|
BLAKE2b-256 checksum How to use checksums |
446157c9d01a1013fbad1ce9b9037baf5b8a921f90ddd4750f7e89737664193f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / pyansilove-1.4.1-py2.py3-none-any.whl
| Download URL | pyansilove-1.4.1-py2.py3-none-any.whl |
|---|---|
| Size | 75.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
129638077537512745bda4cd7551b15ce09b7a2e7874c1a40b6681149fe0db08
|
|
BLAKE2b-256 checksum How to use checksums |
78563c35ac27a06b4ed1a68fc389bf4ddab16a2ecf92d1ae6470bff98dc72f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|