Skip to main content

***

Project description

PyPI - Version PyPI - Python Version PyPI - Types PyPI - License GitHub Actions Workflow Status pre-commit.ci status


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:

Development

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run linter, formatter and type checker: ruff check ., ruff format ., basedpyright .
  5. 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


Download files

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

Source Distribution

dismoji-0.1.1.tar.gz (127.1 kB view details)

Uploaded Source

Built Distribution

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

dismoji-0.1.1-py3-none-any.whl (132.0 kB view details)

Uploaded Python 3

File details

Details for the file dismoji-0.1.1.tar.gz.

File metadata

  • Download URL: dismoji-0.1.1.tar.gz
  • Upload date:
  • Size: 127.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.2

File hashes

Hashes for dismoji-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d46cc10d98249851734a155ac7ecde145aab3d445581b935d8ea46c39c100fb
MD5 45c38e6a3322caf20a5e9eb435d38b4f
BLAKE2b-256 3f5b0934bfb74af8e01de418dda4e939b81a7ecdbe4a7d6d060bbd2c625cbb3f

See more details on using hashes here.

File details

Details for the file dismoji-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dismoji-0.1.1-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

Hashes for dismoji-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 011f1c6edf6c5343dc0cc2a3710ea1e16040e53864d2eae62ab557d0a558bd4c
MD5 b27e05e713c3874c3dcc95ec446c0c8f
BLAKE2b-256 62be326bbb8ebfb73e5e941b3a8702f4fb4057e752cdc19b0129545b5e0e10b1

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