eco
ecoji
pypi i ecoji
eco

ecoji

Encode and decode data as emojis, in Python

by mecforlove

0.1.0 (see all)License:Apache
pypi i ecoji
Readme

Ecoji šŸ£šŸ”‰šŸ¦šŸ”¼

Ecoji encodes data as 1024 [emojis][emoji], its base1024 with an emoji character set. As a bonus, includes code to decode emojis to original data. The idea is from here. And this project is the implemention of Python3.

Installing

  • with pip
$pip install ecoji
  • with source code
$git clone git@github.com:mecforlove/ecoji-py.git && cd ecoji-py && python3 setup.py install

For CLI usage

  • encode
$echo -n hello | ecoji
šŸ‘²šŸ”©šŸš—šŸŒ·
  • decode
$echo -n šŸ‘²šŸ”©šŸš—šŸŒ· | ecoji -d
hello%

If you want to know more about the CLI, just type ecoji -h in your terminal.

For python lib

  • encode
>>> import io
>>> from ecoji import encode
>>> r = io.BytesIO(b'hello')
>>> w = io.StringIO()
>>> encode(r, w)
>>> print(w.getvalue())
šŸ‘²šŸ”©šŸš—šŸŒ·
  • decode
>>> import io
>>> from ecoji import decode
>>> r = io.StringIO('šŸ‘²šŸ”©šŸš—šŸŒ·')
>>> w = io.BytesIO()
>>> decode(r, w)
>>> print(w.getvalue())
b'hello'

Last but not the least, only Python3.x is supported.

GitHub Stars

11

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.1.0
4yrs ago
No alternatives found
No tutorials found
Add a tutorial