Emojis
======
|Documentation Status| |Build Status| |PyPI| |PyPI - Python Version|
Emojis for Python
About
-----
This library allows you to emojify content such as:
``This is a message with emojis :smile: :snake:``
Emoji database is based on `gemoji <https://github.com/github/gemoji>`__
library.
Example
-------
.. code:: python
>>> import emojis
>>> emojis.encode('This is a message with emojis :smile: :snake:')
'This is a message with emojis π π'
>>> emojis.decode('This is a message with emojis π π')
'This is a message with emojis :smile: :snake:'
>>> emojis.get('Prefix π π π π Sufix')
{'π', 'π'}
>>> emojis.count('π π π π')
4
>>> emojis.count('π π π π', unique=True)
2
>>> emojis.db.get_emoji_by_alias('snake')
Emoji(aliases=['snake'], emoji='π', tags=[], category='Animals & Nature', unicode_version='6.0')
>>> emojis.db.get_categories()
{'Activities', 'Travel & Places', 'Smileys & Emotion', 'Symbols', 'Food & Drink', 'Animals & Nature', 'People & Body', 'Objects', 'Flags'}
Installation
------------
Install ``emojis`` with ``pip``.
``pip3 install -U emojis``
Documentation
-------------
`https://emojis.readthedocs.io/ <https://emojis.readthedocs.io/en/latest/>`__
Missing or wrong emoji?
-----------------------
This library is based on `gemoji <https://github.com/github/gemoji>`__
database, the official GitHub emoji library for Ruby.
If an emoji is missing or labeled wrongly, report to
`gemoji <https://github.com/github/gemoji>`__ project. If gemoji fix it,
this library will be updated as soon as thereβs a new gemoji release.
All issues complaining about missing emojis will be closed.
All PRs to include custom emojis will be closed.
License
-------
MIT
.. |Documentation Status| image:: https://readthedocs.org/projects/emojis/badge/?version=latest
:target: https://emojis.readthedocs.io/en/latest/?badge=latest
.. |Build Status| image:: https://github.com/alexandrevicenzi/emojis/actions/workflows/test.yml/badge.svg
:target: https://github.com/alexandrevicenzi/emojis/actions/workflows/test.yml
.. |PyPI| image:: https://img.shields.io/pypi/v/emojis.svg
:target: https://pypi.org/project/emojis/
.. |PyPI - Python Version| image:: https://img.shields.io/pypi/pyversions/emojis.svg
:target: https://pypi.org/project/emojis/
Raw data
{
"_id": null,
"home_page": "https://github.com/alexandrevicenzi/emojis",
"name": "emojis",
"maintainer": "Alexandre Vicenzi",
"docs_url": null,
"requires_python": "",
"maintainer_email": "pypi@alxd.me",
"keywords": "python,emoji,emojis,unicode",
"author": "Alexandre Vicenzi",
"author_email": "pypi@alxd.me",
"download_url": "https://files.pythonhosted.org/packages/39/f0/9ad8cd2d3c0e89dc60f7d6b61f15ff1445935b58ddf6771bcc421b41a174/emojis-0.7.0.tar.gz",
"platform": "",
"description": "Emojis\n======\n\n|Documentation Status| |Build Status| |PyPI| |PyPI - Python Version|\n\nEmojis for Python\n\nAbout\n-----\n\nThis library allows you to emojify content such as:\n``This is a message with emojis :smile: :snake:``\n\nEmoji database is based on `gemoji <https://github.com/github/gemoji>`__\nlibrary.\n\nExample\n-------\n\n.. code:: python\n\n >>> import emojis\n\n >>> emojis.encode('This is a message with emojis :smile: :snake:')\n 'This is a message with emojis \ud83d\ude04 \ud83d\udc0d'\n\n >>> emojis.decode('This is a message with emojis \ud83d\ude04 \ud83d\udc0d')\n 'This is a message with emojis :smile: :snake:'\n\n >>> emojis.get('Prefix \ud83d\ude04 \ud83d\udc0d \ud83d\ude04 \ud83d\udc0d Sufix')\n {'\ud83d\ude04', '\ud83d\udc0d'}\n\n >>> emojis.count('\ud83d\ude04 \ud83d\udc0d \ud83d\ude04 \ud83d\udc0d')\n 4\n\n >>> emojis.count('\ud83d\ude04 \ud83d\udc0d \ud83d\ude04 \ud83d\udc0d', unique=True)\n 2\n\n >>> emojis.db.get_emoji_by_alias('snake')\n Emoji(aliases=['snake'], emoji='\ud83d\udc0d', tags=[], category='Animals & Nature', unicode_version='6.0')\n\n >>> emojis.db.get_categories()\n {'Activities', 'Travel & Places', 'Smileys & Emotion', 'Symbols', 'Food & Drink', 'Animals & Nature', 'People & Body', 'Objects', 'Flags'}\n\nInstallation\n------------\n\nInstall ``emojis`` with ``pip``.\n\n``pip3 install -U emojis``\n\nDocumentation\n-------------\n\n`https://emojis.readthedocs.io/ <https://emojis.readthedocs.io/en/latest/>`__\n\nMissing or wrong emoji?\n-----------------------\n\nThis library is based on `gemoji <https://github.com/github/gemoji>`__\ndatabase, the official GitHub emoji library for Ruby.\n\nIf an emoji is missing or labeled wrongly, report to\n`gemoji <https://github.com/github/gemoji>`__ project. If gemoji fix it,\nthis library will be updated as soon as there\u2019s a new gemoji release.\n\nAll issues complaining about missing emojis will be closed.\n\nAll PRs to include custom emojis will be closed.\n\nLicense\n-------\n\nMIT\n\n.. |Documentation Status| image:: https://readthedocs.org/projects/emojis/badge/?version=latest\n :target: https://emojis.readthedocs.io/en/latest/?badge=latest\n.. |Build Status| image:: https://github.com/alexandrevicenzi/emojis/actions/workflows/test.yml/badge.svg\n :target: https://github.com/alexandrevicenzi/emojis/actions/workflows/test.yml\n.. |PyPI| image:: https://img.shields.io/pypi/v/emojis.svg\n :target: https://pypi.org/project/emojis/\n.. |PyPI - Python Version| image:: https://img.shields.io/pypi/pyversions/emojis.svg\n :target: https://pypi.org/project/emojis/\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Emojis for Python",
"version": "0.7.0",
"split_keywords": [
"python",
"emoji",
"emojis",
"unicode"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "e31c42ec53c54392b49f50e1b8f908d6",
"sha256": "a777926d8ab0bfdd51250e899a3b3524a1e969275ac8e747b4a05578fa597367"
},
"downloads": -1,
"filename": "emojis-0.7.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e31c42ec53c54392b49f50e1b8f908d6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 28347,
"upload_time": "2022-12-01T12:00:07",
"upload_time_iso_8601": "2022-12-01T12:00:07.163919Z",
"url": "https://files.pythonhosted.org/packages/92/fc/25e5793c0f6f09626b94444a3b9faf386c587873fa8f696ad20d37e47387/emojis-0.7.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "ca61ad1b25c036b8408a25d30ab51ed9",
"sha256": "5f437674da878170239af9a8196e50240b5922d6797124928574008442196b52"
},
"downloads": -1,
"filename": "emojis-0.7.0.tar.gz",
"has_sig": false,
"md5_digest": "ca61ad1b25c036b8408a25d30ab51ed9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28362,
"upload_time": "2022-12-01T12:00:09",
"upload_time_iso_8601": "2022-12-01T12:00:09.304917Z",
"url": "https://files.pythonhosted.org/packages/39/f0/9ad8cd2d3c0e89dc60f7d6b61f15ff1445935b58ddf6771bcc421b41a174/emojis-0.7.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-01 12:00:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "alexandrevicenzi",
"github_project": "emojis",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "emojis"
}