{ "info": { "author": "cuzi", "author_email": "cuzi@openmail.cc", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Printing", "Topic :: Text Processing :: General" ], "description": "flag\n====\n\n[![foodemoji on PyPI](https://img.shields.io/pypi/v/emoji-country-flag.svg)](https://pypi.python.org/pypi/emoji-country-flag)\n[![Python Versions](https://img.shields.io/pypi/pyversions/emoji-country-flag.svg)](https://pypi.python.org/pypi/emoji-country-flag)\n[![Coverage Status](https://coveralls.io/repos/github/cvzi/flag/badge.svg?branch=master)](https://coveralls.io/github/cvzi/flag?branch=master)\n[![Build Status](https://travis-ci.org/cvzi/flag.svg?branch=master)](https://travis-ci.org/cvzi/flag)\n[![Documentation Status](https://readthedocs.org/projects/flag/badge/?version=latest)](https://flag.readthedocs.io/en/latest/?badge=latest)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e897c2f701ee44f5aa36457d0ab1a84a)](https://app.codacy.com/app/cvzi/flag?utm_source=github.com&utm_medium=referral&utm_content=cvzi/flag&utm_campaign=Badge_Grade_Dashboard)\n[![Maintainability](https://api.codeclimate.com/v1/badges/cf1f88720896db4d1b0a/maintainability)](https://codeclimate.com/github/cvzi/flag/maintainability)\n\nFlag emoji for Python. \nConverts flag emoji to ASCII and other way round.\n\nThis is based on [http://schinckel.net/2015/10/29/unicode-flags-in-python/](http://schinckel.net/2015/10/29/unicode-flags-in-python/) by [schinckel](https://github.com/schinckel/)\n\nHow it works\n-----------\n\nAll the flag emoji are actually composed of two unicode letters. These are the 26 [regional indicator symbols](https://en.wikipedia.org/wiki/Regional_Indicator_Symbol).\n\nAlone they look like this: \n\ud83c\udde6 \ud83c\udde7 \ud83c\udde8 \ud83c\udde9 \ud83c\uddea \ud83c\uddeb \ud83c\uddec \ud83c\udded \ud83c\uddee \ud83c\uddef \ud83c\uddf0 \ud83c\uddf1 \ud83c\uddf2 \ud83c\uddf3 \ud83c\uddf4 \ud83c\uddf5 \ud83c\uddf6 \ud83c\uddf7 \ud83c\uddf8 \ud83c\uddf9 \ud83c\uddfa \ud83c\uddfb \ud83c\uddfc \ud83c\uddfd \ud83c\uddfe \ud83c\uddff\n\nIf you pair them up according to ISO 3166 some browsers and phones will display a flag. \nFor example CZ is Czechia: \ud83c\udde8 + \ud83c\uddff = \ud83c\udde8\ud83c\uddff\n\nSo, to encode an ASCII code like `:NR:` to \ud83c\uddf3\ud83c\uddf7, we just need to convert the ASCII **N** and **R** to the corresponding regional indicator symbols \ud83c\uddf3 and \ud83c\uddf7. \nTo reverse it, we translate the regional indicator symbols back to ASCII letters.\n\nExample\n-------\n\n```python\n >>> import flag\n\n >>> flag.flagize(\"Flag of Israel :IL:\")\n 'Flag of Israel \ud83c\uddee\ud83c\uddf1'\n\n >>> flag.dflagize(u\"Flag of Israel \ud83c\uddee\ud83c\uddf1\")\n 'Flag of Israel :IL:'\n\n >>> flag.flagize(\"England :gb-eng: is part of the UK :GB:\", subregions=True)\n 'England \ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f is part of the UK \ud83c\uddec\ud83c\udde7'\n\n >>> flag.dflagize(u\"England \ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f is part of the UK \ud83c\uddec\ud83c\udde7\", subregions=True)\n 'England :gb-eng: is part of the UK :GB:'\n```\n\nInstall\n-------\n\n`pip install emoji-country-flag`\n\nSee: [https://pypi.org/project/emoji-country-flag/](https://pypi.org/project/emoji-country-flag/)\n\nDocumentation\n-------------\n\nDocumentation at [https://flag.readthedocs.io](https://flag.readthedocs.io)\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://flag.readthedocs.io/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "emoji-country-flag", "package_url": "https://pypi.org/project/emoji-country-flag/", "platform": "", "project_url": "https://pypi.org/project/emoji-country-flag/", "project_urls": { "Homepage": "https://flag.readthedocs.io/" }, "release_url": "https://pypi.org/project/emoji-country-flag/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "En/Decode unicode country flags emoji", "version": "1.1.0" }, "last_serial": 5378442, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2645431235724a283a626b134bc6813b", "sha256": "be2880b65d82074b22ceddf7720b0bf55228b87cdff4d42893d445b73c28eafc" }, "downloads": -1, "filename": "emoji_country_flag-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2645431235724a283a626b134bc6813b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3830, "upload_time": "2018-06-27T09:08:43", "url": "https://files.pythonhosted.org/packages/7e/2a/37d8333ba66e34b9cd02e52c80a5a397481a86dd54f8ca5dd9bb12ce922c/emoji_country_flag-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e762feb935e0581a929be26d2f434b77", "sha256": "92fa689f0b5869815c7b9c81943745c56dbede1e37e494294a9bcde43d2f3524" }, "downloads": -1, "filename": "emoji-country-flag-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e762feb935e0581a929be26d2f434b77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418, "upload_time": "2018-06-27T09:08:44", "url": "https://files.pythonhosted.org/packages/f0/e4/7595041c5137c7ac08c16ddaba0a6c09e85e8a66500249f61dceeec5e6b2/emoji-country-flag-0.0.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "b01f986f2fca1f84fd5d3dff3ce99eb4", "sha256": "ad65c46ab26a900cc51d23d2a37c717c0ee5dc9fedee1a90eccde2e805b812bd" }, "downloads": -1, "filename": "emoji_country_flag-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b01f986f2fca1f84fd5d3dff3ce99eb4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4847, "upload_time": "2018-10-04T15:12:46", "url": "https://files.pythonhosted.org/packages/55/fb/2b617d322e02655d0f181760d4c987048a68cc722a25b6180afc30ea0837/emoji_country_flag-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9841f42c0dbcb79a71b63d7ff2c14e92", "sha256": "ec8d3b97bda269476f40919934528d5e71b72eeb56f082423c60712874859d6b" }, "downloads": -1, "filename": "emoji-country-flag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9841f42c0dbcb79a71b63d7ff2c14e92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3728, "upload_time": "2018-10-04T15:12:47", "url": "https://files.pythonhosted.org/packages/91/9c/8761c67b2c9dda0dfec2c5f2a1743c54be9d86ab435a7660bd1cb7682726/emoji-country-flag-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a1ea65c9fb03c566e048a2a1bb361bcc", "sha256": "7636c115247525fe753df25b8b19e1a8cc3e93d563187142e0e982bc40eec417" }, "downloads": -1, "filename": "emoji_country_flag-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a1ea65c9fb03c566e048a2a1bb361bcc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5238, "upload_time": "2019-04-18T06:53:07", "url": "https://files.pythonhosted.org/packages/1f/3c/bbb727bb5ddbc9f77805e8d22d0f24f0f70eb792d6dc807c07e3721423a0/emoji_country_flag-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8ae6da2327b1a7022c2e9900a7c3fd4d", "sha256": "534c1582d07cf980b9e6da39251b1c638c5ec949eeba58a19d00a93985261378" }, "downloads": -1, "filename": "emoji-country-flag-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8ae6da2327b1a7022c2e9900a7c3fd4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4121, "upload_time": "2019-04-18T06:53:08", "url": "https://files.pythonhosted.org/packages/19/ff/f6c8e2a2aa96b1ec8045b54a10af6967cc69cd46a57bc5585d20130d5cab/emoji-country-flag-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "7d8a3aa0715c61d3639dd611cbe5e519", "sha256": "e61938476e6b02ca239869a0f9adc4742a96f288700bad66c9938080d1300741" }, "downloads": -1, "filename": "emoji_country_flag-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d8a3aa0715c61d3639dd611cbe5e519", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6540, "upload_time": "2019-06-09T19:11:57", "url": "https://files.pythonhosted.org/packages/ab/dd/1fd92745fb431a056be680c65be41c72a0fea525be3281f90c1d3d31afd0/emoji_country_flag-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b80723347e00497f0bdd2cb86558b6c6", "sha256": "b08eab76129d2e161ba371a8702e7628e79076050681068670da5956b116e3e9" }, "downloads": -1, "filename": "emoji-country-flag-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b80723347e00497f0bdd2cb86558b6c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5376, "upload_time": "2019-06-09T19:11:58", "url": "https://files.pythonhosted.org/packages/aa/b0/8530ad3776327daa9db8444278516f950ab4bf897f10fce14c122adb333d/emoji-country-flag-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d8a3aa0715c61d3639dd611cbe5e519", "sha256": "e61938476e6b02ca239869a0f9adc4742a96f288700bad66c9938080d1300741" }, "downloads": -1, "filename": "emoji_country_flag-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d8a3aa0715c61d3639dd611cbe5e519", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6540, "upload_time": "2019-06-09T19:11:57", "url": "https://files.pythonhosted.org/packages/ab/dd/1fd92745fb431a056be680c65be41c72a0fea525be3281f90c1d3d31afd0/emoji_country_flag-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b80723347e00497f0bdd2cb86558b6c6", "sha256": "b08eab76129d2e161ba371a8702e7628e79076050681068670da5956b116e3e9" }, "downloads": -1, "filename": "emoji-country-flag-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b80723347e00497f0bdd2cb86558b6c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5376, "upload_time": "2019-06-09T19:11:58", "url": "https://files.pythonhosted.org/packages/aa/b0/8530ad3776327daa9db8444278516f950ab4bf897f10fce14c122adb333d/emoji-country-flag-1.1.0.tar.gz" } ] }