Skip to main content

Mojipack

Encode any collection of bytes into a fun square of emojis. It's like base64, but more colourful!

📦‌💖‌🌺‌🦋‌🌈‌🥰‌😂‌🐦‌🍩‌💵‌😢‌🦄
🍎‌🍎‌🍎‌🍎‌🍎‌🐌‌⏰‌💪‌👌‌🎊‌💓‌💖
🎂‌💸‌🧡‌🌈‌🙃‌🎵‌👉‌🌷‌💓‌👉‌📢‌📺
🙃‌🐶‌💖‌🌻‌💸‌😢‌🚀‌💭‌🌈‌💰‌🙃‌🙃
🤗‌🐯‌🍀‌💫‌🤗‌😤‌💫‌💎‌🤧‌🎵‌📣‌📺
📺‌🤧‌🐯‌😤‌💘‌🙂‌🐻‌🌷‌😱‌😞‌🌞‌😹
👉‌🤭‌💪‌💪‌🚀‌💪‌💓‌🦋‌💰‌💰‌😱‌😱
😏‌🍎‌😢‌🤧‌🌺‌🌺‌🍓‌👌‌🤧‌💪‌🍀‌🦄
🦄‌⏰‌😚‌📢‌🌻‌😱‌🌈‌💭‌📌‌🤧‌📌‌😻
🎀‌💫‌🌷‌😤‌😱‌🤯‌🥴‌🤯‌📺‌🦄‌🥴‌🍓
🙃‌💋‌🐶‌🤗‌🍀‌🐯‌😢‌👉‌😹‌😐‌💫‌💘
🐌‌🍎‌😃‌🌷‌😃‌🤧‌🎵‌📌‌🤯‌👌‌🚀‌😄
😤‌🤭‌🌈‌😏‌😚‌💰‌💘

Installation

Mojipack is on PyPI! So all you need to get started is to install it with pip:

pip install mojipack

Usage

Here is how you create a mojipack encoded payload. The example uses msgpack for inner encoding. You could also use UTF-8 encoded json if you don't want to install more packages.

import mojipack
import msgpack

data = msgpack.packb(
    {
        "name": "Jane Doe",
        "age": 21,
        "city": "New York",
        "is_student": False
    },
    use_bin_type=True
)

output = mojipack.encode(data)

print(output)

Decoding is just as simple:

import mojipack
import msgpack

MOJIPACK_MESSAGE = "📦‌💖‌🌺‌🦋‌🌈‌🥰‌😂‌🐦‌🍩‌ ..."

data = mojipack.decode(MOJIPACK_MESSAGE)

print(
    repr(
        msgpack.unpackb(data)
    )
)

Release files for mojipack 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mojipack 2.0.0
File Size Uploaded
mojipack-2.0.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mojipack 2.0.0
File Interpreter ABI Platform
mojipack-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / mojipack-2.0.0.tar.gz

Download URL mojipack-2.0.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4d0d3f87209230e88cf4424411c83b0e328318a2c96f95c848a876d4ef028ca6
BLAKE2b-256 checksum
How to use checksums
296504d4875a34b66b4b79e02143cca2467c465d4ddc3e472df7a1c88c74b38f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / mojipack-2.0.0-py3-none-any.whl

Download URL mojipack-2.0.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a7587ae240716c62176d994487bf4bf2a1a691dc9864e9f869d65b9e45687d0
BLAKE2b-256 checksum
How to use checksums
761ebe6de821757e0588397202e0226a7147c374ea33a5fe2f78fbc19341b56d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page