# Ecoji-py 🏣🔉🦐🔼🍽🚃🔓☕
A Python3 implemention of [Ecoji](https://github.com/keith-turner/ecoji). Ecoji encodes data as 1024 [emojis][emoji], its base1024 with an emoji character set. Give Ecoji a try at [ecoji.io](https://ecoji.io).
## Installing
with pip
`bash $pip3 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% `
Run ecoji -h to learn more about the CLI.
## 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.
[emoji]: https://unicode.org/emoji/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ecoji-0.1.1.tar.gz.
File metadata
- Download URL: ecoji-0.1.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9665b2545d73ea0b4e0c9897cc6575df8ae7dc3946a82ac9d62db2f147139a9c
|
|
| MD5 |
b341a098fbd3eaf38334dc16e604e831
|
|
| BLAKE2b-256 |
0b4c7e8697513111443cb755023ad7a1d921dc51130be33a63c986d6e2c8fb18
|