Skip to main content

foodemoji

foodemoji on PyPI Python Versions Coverage Status Build Status Documentation Status Codacy Badge Maintainability

Decorate a German text (e.g. restaurant menu) with food emojis

Example

>>> import foodemoji
>>> text = """Hähnchenbrust mit Apfelrotkraut
Vegetarische Maultaschen
Kartoffelknödel
Paniertes Schnitzel mit Pommes frites
Rinderbraten, Rotweinsauce und Spätzle"""

>>> print(foodemoji.decorate(text))
"""Hähnchenbrust :rooster: mit Apfelrotkraut :red_apple:
Vegetarische :green_heart: Maultaschen
Kartoffelknödel :potato:
Paniertes Schnitzel mit Pommes frites :french_fries:
Rinderbraten :cow:, Rotweinsauce :wine_glass: und Spätzle"""

>>> import emoji
>>> print(emoji.emojize(foodemoji.decorate(text)))
"""Hähnchenbrust 🐓 mit Apfelrotkraut 🍎
Vegetarische 💚 Maultaschen
Kartoffelknödel 🥔
Paniertes Schnitzel mit Pommes frites 🍟
Rinderbraten 🐮, Rotweinsauce 🍷 und Spätzle"""

>>> text2 = """Gegrillte Hähnchenbrust mit gekochter Hähnchenbrust
Gebratenes Hähnchen mit Hähnchenschnitzel"""
>>> print(foodemoji.decorate(text2))
"""Gegrillte Hähnchenbrust :rooster: mit gekochter Hähnchenbrust :rooster:
Gebratenes Hähnchen :rooster: mit Hähnchenschnitzel :rooster:"""

>>> print(foodemoji.decorate(text2, line_by_line=True))
"""Gegrillte Hähnchenbrust mit gekochter Hähnchenbrust :rooster:
Gebratenes Hähnchen mit Hähnchenschnitzel :rooster:"""

Install

pip install german-foodemoji

See: https://pypi.org/project/german-foodemoji/

Requirements

  • Python 3.7+

To actually print the unicode emojis and for the units tests the package emoji>=2.1.0 is required:

  • pip install emoji

Metadata

Release files for german-foodemoji 1.1.11

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

Source distribution (sdist)

Source distribution for german-foodemoji 1.1.11
File Size Uploaded
german-foodemoji-1.1.11.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for german-foodemoji 1.1.11
File Interpreter ABI Platform
german_foodemoji-1.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / german-foodemoji-1.1.11.tar.gz

Download URL german-foodemoji-1.1.11.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db075108ccf26d5f3e7e8914b486c9ff679e22810496ecdf7b1d3b069ede5730
BLAKE2b-256 checksum
How to use checksums
14c11e25bfe3f1b68dd257ad2fcc917894c0416a66d51691e17095a503362970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / german_foodemoji-1.1.11-py3-none-any.whl

Download URL german_foodemoji-1.1.11-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd79b7427a289ac05d01ad5413b183a948b42d50d550404c80089d3f8cb4217f
BLAKE2b-256 checksum
How to use checksums
787c18a8de9ee375252ccc5f2d4e7a09c70563755e604beb16f0c4a5da4dae84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.1.11 This release

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

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