{ "info": { "author": "Wojtek Siudzinski", "author_email": "admin@suda.pl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "# Emoji encoding for \ud83d\udc0d\n\nThis module provides a custom source code encoding allowing usage of Emoji's for things like variable names or function names.\n\n## Usage\n\nInstall the package with pip:\n```\npip install emoji-encoding\n```\n**It's recommended to install it in [a virtualenv](https://virtualenv.readthedocs.org/en/latest/)**\n\nAfter installation you can specify the encoding in the beginning of a Python file:\n\n```python\n# -*- coding: emoji -*-\ndef \ud83d\udce2(\u2709\ufe0f):\n print(\u2709\ufe0f)\n\n\ud83d\udce2(\"\u270b \ud83c\udf0f\")\n```\n\n## Uninstalling\n\nThis package will create `emoji.pth` file in your `site-packages` directory to autoload the codec. After removing the module you need to remove this file manually.\n\n## Known issues\n\nCurrently the encoding is only available in imported modules so trying to run Emoji encoded file directly will fail:\n\n```\n$ python emoji.py\n File \"emoji.py\", line 1\nSyntaxError: encoding problem: emoji\n```\n\nEasy workaround is to have an another file that imports the Emoji encoded file:\n\n```shell\n$ cat bootstrap.py\nimport emoji\n$ python bootstrap.py\n\u270b \ud83c\udf0f\n```\n\n## History\n\nIt all started with Ola Sendecka's talk about [Emoji Driven Development](https://speakerdeck.com/jezdezcon/ola-sendecka-emoji-driven-development) which made me wonder: \"why *can't* we use Emoji's in Python?\". After a bit of hacking I was able to use them [with a patched cpython](https://twitter.com/suda/status/614814994367168512). This wasn't a perfect solution so playing with this idea I ended up with custom [codec](https://docs.python.org/3/library/codecs.html) that translates Emoji's to their ASCII representations and adds prefix/suffix to decode such unique string back to Unicode.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/suda/python-emoji-encoding", "keywords": "emoji codec encoding", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "emoji-encoding", "package_url": "https://pypi.org/project/emoji-encoding/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/emoji-encoding/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/suda/python-emoji-encoding" }, "release_url": "https://pypi.org/project/emoji-encoding/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "Module providing Emoji encoding for Python", "version": "0.0.5" }, "last_serial": 1968452, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "2f8ad818927e4e1752bce0a786f8394c", "sha256": "df13b58f9fdd2f53a78dad6e274cdaf9797ebe6f584812f848a2889b10457558" }, "downloads": -1, "filename": "emoji-encoding-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2f8ad818927e4e1752bce0a786f8394c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4322, "upload_time": "2016-02-21T21:47:27", "url": "https://files.pythonhosted.org/packages/86/b1/c17e333c2c45615119d7c6303eae1d8800cc3664be7ae91289c2f3479228/emoji-encoding-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f8ad818927e4e1752bce0a786f8394c", "sha256": "df13b58f9fdd2f53a78dad6e274cdaf9797ebe6f584812f848a2889b10457558" }, "downloads": -1, "filename": "emoji-encoding-0.0.5.tar.gz", "has_sig": false, "md5_digest": "2f8ad818927e4e1752bce0a786f8394c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4322, "upload_time": "2016-02-21T21:47:27", "url": "https://files.pythonhosted.org/packages/86/b1/c17e333c2c45615119d7c6303eae1d8800cc3664be7ae91289c2f3479228/emoji-encoding-0.0.5.tar.gz" } ] }