Twemoji API
A lightweight utility for resolving emojis into local asset paths and Twemoji URLs. Supports PNG and SVG assets.
Features
- Resolve local Twemoji asset paths
- Resolve URLs for PNG/SVG assets
Installation
pip install twemoji-api
Usage
Basic
from twemoji_api.api import get_emoji_path, get_emoji_url
print(get_emoji_path("🔥"))
print(get_emoji_url("🔥"))
API Reference
get_extension_folder(extension)
Returns the asset folder (72x72 or svg).
get_emoji_path(emoji, extension="png")
Returns the local file path for an emoji.
get_emoji_url(emoji, extension="png")
Returns the Twemoji GitHub URL for the asset.
License
MIT
Twemoji Attribution
This project includes graphics from Twemoji. Copyright 2019 Twitter, Inc and other contributors. Licensed under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/ No changes were made.
Metadata
Release files for twemoji-api 2.0.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 |
|---|---|---|---|---|
| twemoji_api-2.0.0.tar.gz | 5.9 MB | Without provenance | Details for twemoji_api-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twemoji_api-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for twemoji_api-2.0.0-py3-none-any.whl |
Total release size: 16.1 MB
Release files / twemoji_api-2.0.0.tar.gz
| Download URL | twemoji_api-2.0.0.tar.gz |
|---|---|
| Size | 5.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95a6647ddd001a09ab9b3128efb0367506bb0c419dfe62ebf6e27c45b150fb8e
|
|
BLAKE2b-256 checksum How to use checksums |
f38202abc9e3a1f2748bc1367eb3e6ec78fb26b26fc15ff67189deb084ab31a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / twemoji_api-2.0.0-py3-none-any.whl
| Download URL | twemoji_api-2.0.0-py3-none-any.whl |
|---|---|
| Size | 10.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f698ed961302ea3217c86366b9a9659b69c17d73b794091fed815ef8534e116f
|
|
BLAKE2b-256 checksum How to use checksums |
703f5b50d9dfa26b2eaadf447b76906a9ba00d5f50a5912e2016da6853afb302
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for twemoji-api 2.0.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.