{"id":17720333,"url":"https://github.com/tejado/BaseEmoji","last_synced_at":"2025-03-14T04:30:51.623Z","repository":{"id":43637932,"uuid":"230783610","full_name":"tejado/BaseEmoji","owner":"tejado","description":"Encode any data to emojis 🐾☢","archived":false,"fork":false,"pushed_at":"2020-01-05T15:29:18.000Z","size":34,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T08:19:07.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tejado.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-29T17:44:24.000Z","updated_at":"2024-11-02T18:04:04.000Z","dependencies_parsed_at":"2022-09-11T04:21:13.278Z","dependency_job_id":null,"html_url":"https://github.com/tejado/BaseEmoji","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejado%2FBaseEmoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejado%2FBaseEmoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejado%2FBaseEmoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tejado%2FBaseEmoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tejado","download_url":"https://codeload.github.com/tejado/BaseEmoji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526346,"owners_count":20305107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T15:26:41.908Z","updated_at":"2025-03-14T04:30:46.605Z","avatar_url":"https://github.com/tejado.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# BaseEmoji\n\nBaseEmoji is a python module for encoding any ASCII string or byte object into emoticons and back. It can be used to hide information in text conversations, e.g. chat or twitter or to display hashes in a graphica/more comparable way.  \nIt supports two codecs: anybase and group256. This module is also the reference implementation of these two codecs.\n\nMade with ❤️ at 36c3!\n\n## Install\n```bash\npip install emojibase\n```\nView on PyPi via [https://pypi.org/project/emojibase/](https://pypi.org/project/emojibase/)\n\n## Usage\n\n### anybase\nanybase is a BaseEmoji codec which works by converting the input to the base of the amount of emojis, set by the filter. \n\n```python\nimport BaseEmoji\n\ne = BaseEmoji.anybase()\ne.encode('giv mee emojiiis'.encode())\n# ✴️🥎🐑⛈️🈺🚉‭⚕️🚅🇵🇪🥏🥇📍\n\ne.decode('✴️🥎🐑⛈️🈺🚉‭⚕️🚅🇵🇪🥏🥇📍').decode('ascii')\n# giv mee emojiiis\n\n```\n\n### group256\nThis codec distributes all (filtered) emojis to 256 groups. With this, it can encode any ASCII string to emojis.\n\n```python\nimport BaseEmoji\n\ne = BaseEmoji.group256()\ne.encode('giv mee emojiiis')\n# 😸😻💖🤨😿🤖🥔🐢🕢🧅🙈😼🥒🕤💸💌\n\ne.decode('😸😻💖🤨😿🤖🥔🐢🕢🧅🙈😼🥒🕤💸💌')\n# giv mee emojiiis\n\n```\n\n### Filters\nThere are currently three filter options for changing the emojis for en/decoding:\n- Groups (e.g. flags)\n- Skin Tone Support\n- Unicode Version\n\n```python\ne.set_filter(['Symbols'], False, 12.0)\ne.encode('giv mee symbol emojiiis'.encode())\n# 📛⭕✳️⬅️✖️⚜️⚜️⬅️➰‼️✖️⚕️❎✔️⬅️⚜️✖️❎✅⭕⭕⭕➰\n\ne.get_groups()\n# {'Smileys \u0026 Emotion', 'Travel \u0026 Places', 'Activities', 'Flags', 'Animals \u0026 Nature', 'Symbols', 'People \u0026 Body', 'Objects', 'Food \u0026 Drink'}\n```\n\n## Roadmap\n- Add filter options to encoded data for automatic decoding\n\n## Credits\n- Inspired by [CuteUID](https://github.com/alexdredmon/cuteuid)\n- Emoji data from [muan](https://github.com/muan/unicode-emoji-json)\n- [Jonas](https://github.com/jonas-koeritz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejado%2FBaseEmoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftejado%2FBaseEmoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftejado%2FBaseEmoji/lists"}