A Python library for converting Discord emoji names to their Unicode equivalents.
Project description
Dismoji is a lightweight Python library that provides a simple way to convert Discord
emoji names to their Unicode equivalents. With just a single function call, you can
transform text containing Discord-style emoji codes (like :smile:) into text with
actual Unicode emoji characters (like "😄").
This library uses Paillat-dev/discord-emojis as the source for Discord emoji names and aliases.
import dismoji
# Convert Discord emoji names to Unicode emojis
text = "Hello, :wave: I'm excited! :partying_face:"
converted_text = dismoji.emojize(text)
print(converted_text) # Output: "Hello, 👋 I'm excited! 🥳"
Features
- Simple API: Just one function to remember -
dismoji.emojize() - Discord Compatible: Supports Discord's emoji naming conventions
- Comprehensive: Includes all standard emojis available on Discord
- Type Safe: Fully type-annotated for better IDE integration
- Zero Dependencies: Lightweight with no external dependencies
- Fast: Optimized for quick emoji replacement
Getting Help
If you encounter issues or have questions about dismoji:
- GitHub Issues: Submit a bug report or feature request
- Discord Support: Join the Pycord Official Server and
mention
@paillat
Development
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run linter, formatter and type checker:
ruff check .,ruff format .,basedpyright . - Submit a pull request
Development Tools:
- uv: For dependency management
- Ruff: For linting and formatting
- HashiCorp Copywrite: For managing license headers
- basedpyright: For type checking
License
MIT License - Copyright (c) 2025 Paillat-dev
Made with ❤ by Paillat-dev
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dismoji-0.1.2.tar.gz.
File metadata
- Download URL: dismoji-0.1.2.tar.gz
- Upload date:
- Size: 127.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3160df186a91546e92a5205801a850a1182047128b0fe1afb0c89af995866ac
|
|
| MD5 |
dba9a056b57fa55a1937d83837ca8b83
|
|
| BLAKE2b-256 |
46b8bb39edd14275a2d1671ce453b5c3dd61f5a968898a28e87eba90cb70c3bc
|
File details
Details for the file dismoji-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dismoji-0.1.2-py3-none-any.whl
- Upload date:
- Size: 132.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c3c844dca6ca5c2e26f0f2878631a328a215c6a79670a1cd51719611c29bf0
|
|
| MD5 |
fbfe4d2e01505e51438f4b164775d959
|
|
| BLAKE2b-256 |
1b9ce5b88c1dba5d7b0e6de6b159acd51e56529af122d78ab184c4bc2e43ac53
|