Skip to main content

Twemoji API

PyPI Python License Downloads

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.

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)

Source distribution for twemoji-api 2.0.0
File Size Uploaded
twemoji_api-2.0.0.tar.gz 5.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for twemoji-api 2.0.0
File Interpreter ABI Platform
twemoji_api-2.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2.0.0 This release

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