Glasstext converts a string to spaces and tabs. Make writing as if blank. It's like whitespace programming language.
The algorithm is very simple. The string is converted to ascii decimal then ascii decimal is converted to binary after the binary, number 0 is converted to a space and number 1 is converted to tabs.
Glasstext mengkonversi sebuah string menjadi spasi dan tabs. Membuat tulisan menjadi seolah-olah blank. Ini seperti whitespace programing language.
Algoritmanya sangatlah sederhana. String dikonversi ke ascii decimal lalu ascii decimal dikonversi ke binary setelah jadi binary, angka 0 diubah menjadi spasi dan angka 1 diubah menjadi tabs.
python setup.py install
After the glasstext folder is copied to your project folder, after that you import the glasstext module.
from glasstext import glass
-
read(glasstext, rotate=False)
Reads the glasstext string into a plain text string -
write(text, rotate=False)
Change plain text to glasstext -
load(filename, rotate=False)
Load and read glasstext from a file into plain text -
dump(text, filename, rotate=False)
Change the plain text into glasstext then make the file
Rotate parameter is to change/rotate the default binary output.
default:
- 0 is space
- 1 is tabs
-
Pros
Your string is invisible -
Cons
Glasstext is very long string, because it is binary that changed to space and tabs