Modern hieroglyphs in the terminal.
Project description
Glyphoji
Modern hieroglyphs in the terminal.
>>> from glyphoji import glyph
>>> print(f"This {glyph.burger} is a burger!")
This 🍔 is a burger!
Glyphoji is a friendly cross-platform emoji library that brings a touch of fun to your terminal experience! 🎉 With a collection of over 2,500 old + new emojis, your code can now smile, wink, and dance. Adding visual flair to your code has never been this easy!😎
ℹ️ Getting Started
⬇️ Installation
📦 PyPI
Glyphoji can be installed from PyPI with pip by running the command:
$ pip install glyphoji
🚧 Dev from GitHub
Intstalling the unreleased dev version of Glyphoji can also be done with pip:
$ pip install git+https://github.com/rly0nheart/glyphoji.git@dev
The unreleased versions might not be stable.
📖 Code Examples
😀 Available Glyphs/Emojis
All glyphs/emojis can be printed by accessing the glyphs attribute from the glyph instance.
>>> from glyphoji import glyph
>>> print(glyph.glyphs)
🥑: {'aliases': ['avocado'], 'description': 'An avocado.'}
🍆: {'aliases': ['eggplant'], 'description': 'An eggplant.'}
🥔: {'aliases': ['potato'], 'description': 'A potato.'}
🥕: {'aliases': ['carrot'], 'description': 'A carrot.'}
🌽: {'aliases': ['ear_of_corn', 'corn', 'maize'], 'description': 'An ear of corn.'}
🌶️: {'aliases': ['hot_pepper'], 'description': 'A hot pepper.'}
🫑: {'aliases': ['bell_pepper'], 'description': 'A bell pepper.'}
...
🔍 Searching Glyphs
Glyphoji also lets users search for a specific glyph, and returns all results that closely match with the query. The query can be the glyph name/alias or a description of the glyph.
>>> from glyphoji import glyph
>>> query = "flying saucer"
>>> print(glyph.search(query))
[close matches to `flying saucer`]
🛸: {'aliases': ['flying_saucer', 'ufo', 'spaceship', 'spacecraft'], 'description': 'A flying saucer.'}
📛 Aliases
Some glyphs have aliases or alternate names that can also be used to return the glyph itself:
>>> from glyphoji import glyph
>>> print(f"This {glyph.hotdog} is a hot dog!")
This 🌭 is a hot dog!
>>> print(f"This {glyph.hot_diggity_dog} is also a hot dog!")
This 🌭 is also a hot dog!
>>> from glyphoji import glyph
>>> print(f"The party was {glyph.fire}")
The party was 🔥
>>> print(f"The party was {glyph.lit}")
The party was 🔥
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file glyphoji-0.3.1.tar.gz
.
File metadata
- Download URL: glyphoji-0.3.1.tar.gz
- Upload date:
- Size: 45.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1b00d2284891ebb18185ba173fdcff1966c014af5894337efc39760e905fcd |
|
MD5 | e7858cd297014ab441fa7955325a6d06 |
|
BLAKE2b-256 | 585fea9b77ca4a823bff8f90e8ab34baf2be74f70e2318dbb95ed61f8f4d450f |
File details
Details for the file glyphoji-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: glyphoji-0.3.1-py3-none-any.whl
- Upload date:
- Size: 44.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efdbf83702b04a16113cb2227365979d533a8106f5c7b68631f00ee888394c10 |
|
MD5 | 03ff36511e3510b44bde1ad13a3d488c |
|
BLAKE2b-256 | eae6b3d62b10615da3da3cb32d1666df6f9df029ceebfa2999ac384a8f7baaea |