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]( And this project is the implemention of Python3.

## Installing

  • with pip

`bash $pip install ecoji `

  • with source code

`bash $git clone && cd ecoji-py && python3 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

Download files

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

Source Distribution

ecoji-0.1.0.tar.gz (6.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page