emoji-strings
Adds support for emoji-strings in Python, which convert emoji names into actual emoji.
Tests |
|
|---|---|
PyPI |
|
Activity |
|
QA |
|
Other |
Installation
emoji-strings can be installed from PyPI.
To install with pip:
$ python -m pip install emoji-strings
Usage
Emoji strings (g-strings for short) are similar to Python’s f-strings. However, rather than using curly braces, g-strings use colons to mark emoji in a string. For example, in the following sentence, :rocket: denotes a substitution, in this case for a 🚀 emoji:
Deploy the app :rocket:
In a Python source file, you can write this as:
print(g"Deploy the app :rocket:")
# ^ note the "g" prefix character
which would print:
Deploy the app 🚀
Ta da! You no longer need to remember unicode code points or use cumbersome emoji entry dialogs. To enable this magic, add the following comment to the top of your python source file:
# -*- coding: emoji_strings -*-
and add emoji-strings to your requirements.txt file.
Disclaimer
This is a joke.
While this absolutely does work I made it for fun. Someone had asked me if, since Python has f-strings, it also has g-strings? It does now.
Credits
Based on future-fstrings, and uses the emoji library to parse the emoji names.
Metadata
Release files for emoji-strings 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emoji_strings-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for emoji_strings-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emoji_strings-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for emoji_strings-0.1.0-py3-none-any.whl |
Total release size: 19.5 kB
Release files / emoji_strings-0.1.0.tar.gz
| Download URL | emoji_strings-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5578fe00dedf81f56540395c1afa673de25dfa905d1a55165ffdea440c59d349
|
|
BLAKE2b-256 checksum How to use checksums |
39865b6eb98d252344f60e8cb126c0432ae2c6756541304ec64bec8742f4e193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / emoji_strings-0.1.0-py3-none-any.whl
| Download URL | emoji_strings-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b57644946963d35066cf318bf26066610e4821e4dee8a958b0bada9d57943e0
|
|
BLAKE2b-256 checksum How to use checksums |
9e935a0215b7c32dd7a95583b14b309f6af989b049f68fccd3caccc7c2bfa2f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for emoji-strings 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.