Skip to main content

A fun bijective text transformer

Project description


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

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

fizzy-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

fizzy-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file fizzy-1.0.0.tar.gz.

File metadata

  • Download URL: fizzy-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fizzy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3eb7e878bec0a55428d0fc3488912b815165f8e6a6fcea3f396fe1c489f06618
MD5 fec10b5baca9787039142f979fa4e2b7
BLAKE2b-256 94a66c4a6e9ba9af3930504ab07e390b556f27f9ae5b4832a3216e7dc87439c7

See more details on using hashes here.

File details

Details for the file fizzy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fizzy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fizzy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4ea39af84b39947b5add690b1431e8621503f189ae5888b59abe80766666c0
MD5 88603f310db835f05c9e20a25a75d9c4
BLAKE2b-256 f2f814a0c777d09b23f0ada5d24c325f64d88e3a6293e3509bbff68658c81651

See more details on using hashes here.

Supported by

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