Skip to main content

A lightweight utility for resolving emojis into file names, local asset paths, and URLs.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twemoji_api-2.0.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twemoji_api-2.0.0-py3-none-any.whl (10.2 MB view details)

Uploaded Python 3

File details

Details for the file twemoji_api-2.0.0.tar.gz.

File metadata

  • Download URL: twemoji_api-2.0.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for twemoji_api-2.0.0.tar.gz
Algorithm Hash digest
SHA256 95a6647ddd001a09ab9b3128efb0367506bb0c419dfe62ebf6e27c45b150fb8e
MD5 388f0ca49dbd7e6a866f0d990f4cfbd3
BLAKE2b-256 f38202abc9e3a1f2748bc1367eb3e6ec78fb26b26fc15ff67189deb084ab31a5

See more details on using hashes here.

File details

Details for the file twemoji_api-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: twemoji_api-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for twemoji_api-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f698ed961302ea3217c86366b9a9659b69c17d73b794091fed815ef8534e116f
MD5 3c9a83f02fe450debaf19da610da1f6f
BLAKE2b-256 703f5b50d9dfa26b2eaadf447b76906a9ba00d5f50a5912e2016da6853afb302

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page