Skip to main content

Encode and decode data as emojis.

Project description

# 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](https://github.com/keith-turner/ecoji). And this project is the implemention of Python3.

## Installing

  • with pip

`bash $pip install ecoji `

  • with source code

`bash $git clone git@github.com:mecforlove/ecoji-py.git && cd ecoji-py && python3 setup.py install `

## For CLI usage

  • encode

`base $echo -n hello | ecoji ๐Ÿ‘ฒ๐Ÿ”ฉ๐Ÿš—๐ŸŒท `

  • decode

`bash $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

`python >>> import io >>> from ecoji import encode >>> r = io.BytesIO(b'hello') >>> w = io.StringIO() >>> encode(r, w) >>> print(w.getvalue()) ๐Ÿ‘ฒ๐Ÿ”ฉ๐Ÿš—๐ŸŒท `

  • decode

`python >>> 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.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ecoji-0.1.0.tar.gz (6.5 kB) Copy SHA256 hash SHA256 Source None Apr 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page