euporie.core.convert.formats.ansi
Contain functions which convert data to formatted ansi text.
Functions
|
Call the command as a subprocess and return it's output as bytes. |
|
Return the ceiling of x as an Integral. |
|
Convert image data to ANSI text using chafa. |
|
Convert image data to ANSI text using ::chafa.py. |
|
Verify a list of external commands exist on the system. |
|
Get the current active (running) Application. |
|
Verify a list of python modules are importable. |
|
Convert HTML text to formatted ANSI using elinks. |
|
Convert HTML text to formatted ANSI using links. |
|
Convert HTML text to formatted ANSI using lynx. |
|
Convert HTML tables to ANSI text using |
|
Convert HTML text to formatted ANSI using w3m. |
|
Convert image data to ANSI text using catimg. |
|
Convert image data to ANSI text using icat. |
|
Convert image data to ANSI text using jp2a. |
|
Convert image data to ANSI text using timg. |
|
Convert image data to ANSI text using tiv. |
|
Convert image data to ANSI text using viu. |
|
Convert LaTeX to ANSI using |
|
Convert LaTeX to ANSI using |
|
Convert LaTeX to ANSI using |
|
Convert a PIL image to ANSI text using |
|
Convert a PIL image to ANSI text using |
|
Convert PNG data to ANSI text using img2txt. |
|
Draw placeholder ANSI text. |
|
Add a converter to the centralized format conversion system. |
|
Convert rich objects to formatted ANSI text. |
|
Remove the alpha channel from an image and set the background colour. |
Classes
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- async euporie.core.convert.formats.ansi.html_to_ansi_elinks(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert HTML text to formatted ANSI using elinks.
- async euporie.core.convert.formats.ansi.html_to_ansi_links(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert HTML text to formatted ANSI using links.
- async euporie.core.convert.formats.ansi.html_to_ansi_lynx(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert HTML text to formatted ANSI using lynx.
- async euporie.core.convert.formats.ansi.html_to_ansi_py_htmlparser(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert HTML tables to ANSI text using
HTMLParser
.
- async euporie.core.convert.formats.ansi.html_to_ansi_w3m(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert HTML text to formatted ANSI using w3m.
- async euporie.core.convert.formats.ansi.image_to_ansi_catimg(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using catimg.
- async euporie.core.convert.formats.ansi.image_to_ansi_icat(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using icat.
- async euporie.core.convert.formats.ansi.image_to_ansi_jp2a(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using jp2a.
- async euporie.core.convert.formats.ansi.image_to_ansi_timg(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using timg.
- async euporie.core.convert.formats.ansi.image_to_ansi_tiv(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using tiv.
- async euporie.core.convert.formats.ansi.image_to_ansi_viu(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert image data to ANSI text using viu.
- async euporie.core.convert.formats.ansi.latex_to_ansi_py_flatlatex(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert LaTeX to ANSI using
flatlatex
.
- async euporie.core.convert.formats.ansi.latex_to_ansi_py_pylatexenc(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert LaTeX to ANSI using
pylatexenc
.
- async euporie.core.convert.formats.ansi.latex_to_ansi_py_sympy(data: str, width: int | None = None, height: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert LaTeX to ANSI using
sympy
.
- async euporie.core.convert.formats.ansi.pil_to_ansi_py_img2unicode(data: PilImage, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert a PIL image to ANSI text using
img2unicode
.
- async euporie.core.convert.formats.ansi.pil_to_ansi_py_timg(data: PilImage, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert a PIL image to ANSI text using
timg
.
- async euporie.core.convert.formats.ansi.png_to_ansi_img2txt(data: bytes, cols: int | None = None, rows: int | None = None, fg: str | None = None, bg: str | None = None, path: Path | None = None, initial_format: str = '') str
Convert PNG data to ANSI text using img2txt.