my version of @dis.sociat.ing's dollcode algorithm in python
at main 30 lines 864 B view raw view rendered
1# dollcode 2 3my version of @dis.sociat.ing's [dollcode](https://noe.sh/dollcode/) in python. 4 5## install 6requires uv. 7 8```sh 9# install uv with personal package manager, then... 10git clone https://tangled.org/bruja.moe/dollcode 11``` 12 13## usage 14`uv run main.py encode <input>`: encodes input in dollcode 15```sh 16uv run main.py encode "67" 17# outputs: ▖▘▌▘▘▌▘▌▖ 18``` 19 20`uv run main.py decode <input>`: decodes dollcode 21```sh 22uv run main.py decode "▌▘▌▖▘▘▘▘▘" 23# outputs: hi 24``` 25 26`uv run main.py [encode/decode] <input> -c`: copies output to clipboard 27```sh 28uv run main.py encode "copy if pretty" -c 29# outputs: ▖▌▌▖▌▖▌▘▌▖▖▘▘▘▘▌▌▖▖▌▌▘▖▖▘▖▌▖▘▘▌▖▖▖▖▌▖▘▘▘▌▖▖▖▘▘▌▖▌▘▘▖▌▖▘▘▌▖▌▖▘▘▌▌▖▖▖▌▖▘ -> 📋 copied! 30```