Dependency-free fork of `dressup`
Project description
dressuplite
dressuplite is a Python 3.11 package to convert strings to use Unicode formatting. It can for instance replace "words" into "๐ด๐ฌ๐ฏ๐ก๐ฐ", "๐๐
พ๐๐
ณ๐", and "๐๐ธ๐ป๐ญ๐ผ". It is a lightweight fork of the original package dressup
without any third-party runtime dependencies.
As a disclaimer, this package has no association with dressup
.
Links
Caption | Link |
---|---|
Repo | https://github.com/impredicative/dressuplite/ |
Changelog | https://github.com/impredicative/dressuplite/releases |
Package | https://pypi.org/project/dressuplite/ |
Development
For software development purposes only, the project can be set up on Ubuntu as below.
make setup-ppa
make install-py
make setup-venv
source ./venv/bin/activate
make install
make test
Installation
Python โฅ3.11 is required due to the use of tomllib
. This is due ot the use of TOML in the original package.
To install, run:
$ pip install dressuplite
Usage
To convert characters:
>>> import dressuplite
>>> dressuplite.convert("Hello", unicode_type="negative circle")
'๐
๐
๐
๐
๐
'
To show all possible conversions:
>>> import dressuplite
>>> for unicode_type, text in dressuplite.show_all("Hello").items():
... print(f'{unicode_type.lower()}: {text}')
...
circle: โฝโโโโ
negative circle: ๐
๐
๐
๐
๐
monospace: ๏ผจ๏ฝ
๏ฝ๏ฝ๏ฝ
math bold: ๐๐๐ฅ๐ฅ๐จ
math bold fraktur: ๐ณ๐๐๐๐
math bold italic: ๐ฏ๐๐๐๐
math bold script: ๐๐ฎ๐ต๐ต๐ธ
math double struck: โ๐๐๐๐
math monospace: ๐ท๐๐๐๐
math sans: ๐ง๐พ๐
๐
๐
math sans bold: ๐๐ฒ๐น๐น๐ผ
math sans bold italic: ๐๐๐ก๐ก๐ค
math sans italic: ๐๐ฆ๐ญ๐ญ๐ฐ
parenthesized: โฃโ โงโงโช
square: ๐ท๐ด๐ป๐ป๐พ
negative square: ๐
ท๐
ด๐
ป๐
ป๐
พ
cute: Hรฉฤบฤบล
math fraktur: โ๐ข๐ฉ๐ฉ๐ฌ
rock dots: แธฆรซแธทแธทรถ
small caps: สแดสสแด
stroked: ฤฆษลลรธ
subscript: โโโโโ
superscript: แดดแตหกหกแต
inverted: ษฅวืืo
reversed: Hษโ
โ
o
Character mappings are precomputed and defined in translator.toml
.
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
Hashes for dressuplite-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 709e48d2335fac7cb17072476c46847d424ffd82756d0e94bda7dfdd71f904a9 |
|
MD5 | 903cd78f90eb8769e4a0c09409a5cbdc |
|
BLAKE2b-256 | cd5375640a6f9896b3c9478ac212ea4fbf9995534487e6621001d4d7aa598f90 |