Skip to main content

Dress up

Project description

Dress up

Dress up logo

Tests Codecov PyPI Python Version Read the Docs License Code style: black

Convert your strings to various Unicode characters. Turn "words" into "๐”ด๐”ฌ๐”ฏ๐”ก๐”ฐ", "๐Ÿ††๐Ÿ…พ๐Ÿ†๐Ÿ…ณ๐Ÿ†‚", and "๐”€๐“ธ๐“ป๐“ญ๐“ผ".

usage animation


Documentation: https://dressup.readthedocs.io/


Contents

  1. Installation
  2. Usage
  3. Contributing

Installation

To install Dress up, run this command in your terminal

โฏ python -m pip install dressup

If you're using it primarily as a command-line tool, it's recommended you install it via pipx

โฏ pipx install dressup

Usage

There are two primary ways to use Dress upโ€”as a command-line tool, or as Python library.

Command-line usage

Display all possible transformations by running:

โฏ dressup Hello
Circle

โ’ฝโ“”โ“›โ“›โ“ž

Negative circle

๐Ÿ…—๐Ÿ…”๐Ÿ…›๐Ÿ…›๐Ÿ…ž

Monospace

๏ผจ๏ฝ…๏ฝŒ๏ฝŒ๏ฝ

Math bold

๐‡๐ž๐ฅ๐ฅ๐จ

...

Return only a specific transformation by using the --type flag.

โฏ dressup Vibes --type inverted
๐Œกฤฑqวs

Autocompletion

autocompletion animation

Dress up supports argument completions along with live previews. To enable autocompletion run.

โฏ dressup --install-completion zsh
zsh completion installed in /Users/username/.zshrc.

Completion will take effect once you restart the terminal.

zsh may be replaced with bash, fish, powershell, or pwsh. Along with typical autocompletion, when typing in a value for --type if [TAB] is pressed the matching parameter values will be displayed below along with a preview of the conversion.

โฏ dressup Words --type math [TAB]
math-bold              -- ๐–๐จ๐ซ๐๐ฌ
math-bold-fraktur      -- ๐–‚๐–”๐–—๐–‰๐–˜
math-bold-italic       -- ๐‘พ๐’๐’“๐’…๐’”
math-bold-script       -- ๐“ฆ๐“ธ๐“ป๐“ญ๐“ผ
math-double-struck     -- ๐•Ž๐• ๐•ฃ๐••๐•ค
math-fraktur           -- ๐”š๐”ฌ๐”ฏ๐”ก๐”ฐ
math-monospace         -- ๐š†๐š˜๐š›๐š๐šœ
math-sans              -- ๐–ถ๐—ˆ๐—‹๐–ฝ๐—Œ
math-sans-bold         -- ๐—ช๐—ผ๐—ฟ๐—ฑ๐˜€
math-sans-bold-italic  -- ๐™’๐™ค๐™ง๐™™๐™จ
math-sans-italic       -- ๐˜ž๐˜ฐ๐˜ณ๐˜ฅ๐˜ด

Library usage

To convert characters, use convert.

import dressup

dressup.convert("Hello", unicode_type="negative circle")
'๐Ÿ…—๐Ÿ…”๐Ÿ…›๐Ÿ…›๐Ÿ…ž'

To return all possible conversions, use show_all.

import dressup

dressup.show_all("Hello")
{'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'}

Contributing

All character mappings are stored in translator.toml. Want to add a new mapping or tweak an existing one? Simply edit translator.toml and create a pull request.

Check out CONTRIBUTING.md for general contribution guidelines.

Project details


Download files

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

Source Distribution

dressup-0.1.2.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

dressup-0.1.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dressup-0.1.2.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for dressup-0.1.2.tar.gz
Algorithm Hash digest
SHA256 13aa200ffe2f04e9b40a736337c510aa078a1a23be1df3ac059e5bff12f37bc6
MD5 746fb3db58fc97976782c9cbedec7fb3
BLAKE2b-256 6c0e1e1cfe2e15612f017c7a22d5bf65a83c0ae4edb4a9ac4b340a3aefd7dc37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dressup-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for dressup-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36733699deddf07f754a00ab429f907328c7f8025bfa0916f65801f3e7238fe3
MD5 b02fb0762c7d20dbbe3eaf800ff3d85b
BLAKE2b-256 ea50dd5fa03b717774f941c6696f78bc4d94ca6caef5692ebfeab14ea7cd4759

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page