DaBlincx / bottom.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bottom.py

idk if someone already did this or not

i made a small library to encode and decode bottom using the official bottom spec

usage

import the module

import bottom

encode some utf-8 string

>>> bottom.encode("hello")
"πŸ’–πŸ’–,,,,πŸ‘‰πŸ‘ˆπŸ’–πŸ’–,πŸ‘‰πŸ‘ˆπŸ’–πŸ’–πŸ₯Ί,,,πŸ‘‰πŸ‘ˆπŸ’–πŸ’–πŸ₯Ί,,,πŸ‘‰πŸ‘ˆπŸ’–πŸ’–βœ¨,πŸ‘‰πŸ‘ˆ"

decode the bottom string into utf-8

>>> bottom.decode(encoded)
"hello"

About

License:MIT License


Languages

Language:Python 100.0%