Registry / serialization / ecoji
library0.1.1pypypi✓ verified 90d ago

Ecoji encodes and decodes data as emojis. Current version 0.1.1. Low activity, packaging fix only.

pip install ecoji
INSTALL
IMPORT
SIG · ECOJI
E
ecoji
serializationpythonv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

encode
✓ from ecoji import encode
decode
✓ from ecoji import decode

Encode bytes to emojis and decode back.

from ecoji import encode, decode message = b"Hello, World!" encoded = encode(message) print(encoded) # emoji string decoded = decode(encoded) print(decoded) # b"Hello, World!"
ecoji --version
Debug
Known issues
gotchaInput must be bytes; passing a string will raise TypeError.
fix
Use .encode() on strings before passing to encode.
affects: all
deprecatedLibrary is not actively maintained; last release 0.1.1 (unclear date). May have undiscovered bugs.
fix
Consider alternatives if reliability is critical.
affects: 0.1.1
gotchadecode expects a string; passing bytes will raise TypeError.
fix
Ensure the input to decode is a str.
affects: all
gotchaThe emoji alphabet is limited; very large inputs produce very long emoji strings.
fix
Be aware of output size for large data.
affects: all
Errors
Common errors & fixes
TypeError: a bytes-like object is required, not 'str'
Passing a string to encode instead of bytes.
fix
Use encode(b'your text') or encode('your text'.encode())
TypeError: argument 1 must be str, not bytes
Passing bytes to decode instead of string.
fix
Use decode(encoded_str) where encoded_str is a str.
AttributeError: module 'ecoji' has no attribute 'encode'
Old incorrect import like 'import ecoji' then 'ecoji.encode'.
fix
Use 'from ecoji import encode'.
Upgrade
Version history
0.1.1latest on PyPI · released Jul 13, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ecoji — pip install ecoji · libregistry