Skip to content

Kreusada/Fizzy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Fizzy
Fizzy

Fizzy is a fun bijective text transformer. It performs base-64 encoding on a predefined charset of unicode characters that resemble bubbles through their appearance. Each character is transformed and joined together with the Latin lower case "o" character.

Please bear in mind that not all unicode characters are compatible with all systems. This won't have an effect on functionality.

The text transformer is bijective, meaning there is a one-to-one correspondence between the original and the transformed text.

I made this module for fun, it advise against using it in a practical context other than to play around with it.

Usage

Import the module:

import fizzy

Use the fizz function to make your text fizzy:

>>> import fizzy

>>> fizzy.fizz("Hello world!")
'Ⓞ᧐o౦᧐o᠐᧐o᠐᧐o᪐᧐o🇴o꣐᧐o᪐᧐o᱀᧐o᠐᧐o௦᧐o𑵐'

Use the defizz function to revert fizzy text to its original form:

>>> import fizzy

>>> fizzy.defizz("Ⓞ᧐o౦᧐o᠐᧐o᠐᧐o᪐᧐o🇴o꣐᧐o᪐᧐o᱀᧐o᠐᧐o௦᧐o𑵐")
'Hello world!'

Use the isfizzy function to check if the given text is fizzy:

>>> import fizzy

>>> fizzy.isfizzy("ꝏ᧐o౦᧐o୦᧐o᱀᧐o౦᧐o⁰᧐")
True

>>> fizzy.isfizzy("o0o0o0o0o0o0o0")
False

Further Fizz Examples

>>> import fizzy

>>> fizzy.fizz("Apple")
'᧐᧐o᭐᧐o᭐᧐o᠐᧐o౦᧐'

>>> fizzy.fizz("12345")
'᮰o᱀o᱐o⁰o₀'

>>> fizzy.fizz("🚀💡🎨")
'𖫩߀૦o𑵐ꓳ૦o๐𛱄૦'

>>> fizzy.fizz("愚蠢的功能")
'߀°оo᛫🇴Ⓞo°߀ₒo૦𐓪Оo𐴰꯰Ⓞ'

>>> import string

>>> fizzy.fizz(string.punctuation)
'𑵐o᛫o୦o௦o౦o೦o൦o๐o໐o၀o᥆o᠐o0o᪀o᪐o꩐o.o𐒠o𐴰o0o𑃰o𖫩᧐o०᧐o০᧐o*᧐o੦᧐o૦᧐o🇴᧐o.᧐o𐒠᧐o𐴰᧐o0᧐'

Command Line Interface

The CLI commands work in the same way as the module.

$ fizzy fizz cool text here
୦᧐o᪐᧐o᪐᧐o᠐᧐o🇴o⁰᧐o౦᧐o꤀᧐o⁰᧐o🇴o๐᧐o౦᧐o᱀᧐o౦᧐
$ fizzy defizz ୦᧐o᪐᧐o᪐᧐o᠐᧐o🇴o⁰᧐o౦᧐o꤀᧐o⁰᧐o🇴o๐᧐o౦᧐o᱀᧐o౦᧐
cool text here

Installation

Install from pip.

pip install fizzy

Characters

Character Name Code
𖫩 Bassa Vah Letter Oo 16ae9
New Tai Lue Digit Zero 19d0
O Latin Capital Letter O 4f
Meetei Mayek Digit Zero abf0
° Degree Sign b0
О Cyrillic Capital Letter O 41e
о Cyrillic Small Letter O 43e
Latin Subscript Small Letter O 2092
Circled Latin Capital Letter O 24c4
𐓂 Osage Capital Letter O 104c2
𐓪 Osage Small Letter O 104ea
𐔖 Elbasan Letter O 10516
𐖮 Vithkuqi Small Letter O 105ae
𐤬 Lydian Letter O 1092c
𛱄 Duployan Letter O 1bc44
Circled Latin Small Letter O 24de
Coptic Capital Letter O 2c9e
Coptic Small Letter O 2c9f
Lisu Letter O a4f3
Latin Small Letter Oo a74f
Latin Capital Letter Oo a74e
Fullwidth Latin Capital Letter O ff2f
Fullwidth Latin Small Letter O ff4f
𐊫 Carian Letter O 102ab
𐌏 Old Italic Letter O 1030f
Sundanese Punctuation Bindu Cakra 1cc3
߀ Nko Digit Zero 7c0
Devanagari Digit Zero 966
Bengali Digit Zero 9e6
* Asterisk 2a
Gurmukhi Digit Zero a66
Gujarati Digit Zero ae6
🇴 Regional Indicator Symbol Letter O 1f1f4
𑵐 Masaram Gondi Digit Zero 11d50
Runic Single Punctuation 16eb
Oriya Digit Zero b66
Tamil Digit Zero be6
Telugu Digit Zero c66
Kannada Digit Zero ce6
Malayalam Digit Zero d66
Thai Digit Zero e50
Lao Digit Zero ed0
Myanmar Digit Zero 1040
Limbu Digit Zero 1946
Mongolian Digit Zero 1810
0 Digit Zero 30
Tai Tham Hora Digit Zero 1a80
Tai Tham Tham Digit Zero 1a90
Balinese Digit Zero 1b50
Sundanese Digit Zero 1bb0
Lepcha Digit Zero 1c40
Ol Chiki Digit Zero 1c50
Superscript Zero 2070
Subscript Zero 2080
Ideographic Number Zero 3007
Saurashtra Digit Zero a8d0
Kayah Li Digit Zero a900
Javanese Digit Zero a9d0
Cham Digit Zero aa50
. Full Stop 2e
𐒠 Osmanya Digit Zero 104a0
𐴰 Hanifi Rohingya Digit Zero 10d30
Fullwidth Digit Zero ff10
𑃰 Sora Sompeng Digit Zero 110f0

About

A fun bijective text transformer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages