Skip to main content

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, but without any third-party runtime dependencies.

As a disclaimer, this package has no association with dressup.

cicd badge

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: Hello
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: ⅃⅃o

Character mappings are precomputed and defined in translator.toml.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dressuplite-0.1.2.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dressuplite-0.1.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file dressuplite-0.1.2.tar.gz.

File metadata

  • Download URL: dressuplite-0.1.2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for dressuplite-0.1.2.tar.gz
Algorithm Hash digest
SHA256 23e0b013a7e0770a281dd44352927ee8a45d5fe7fdd9fa6635302e5876623b42
MD5 643280f8ff091864a31d45f511c4c14f
BLAKE2b-256 4642584a10e17fb1cdc0469120d45b3b287b83bf64063a4cc12667147c3ab52d

See more details on using hashes here.

File details

Details for the file dressuplite-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dressuplite-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for dressuplite-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b33d6a241771d74154d896b1f03cac16cb49389eb268fc98db10f1ab8cdaa9f3
MD5 300f731d35a18cfcd4264da482d11858
BLAKE2b-256 c231dc67d4d613eaec9ab887e8d9073e84ad9c34b78573e7aeec0fcbed5349fc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 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