Files
dismoji/README.md

104 lines
2.9 KiB
Markdown
Raw Normal View History

2025-05-03 23:49:48 +02:00
<div align="center">
<h1>dismoji</h1>
2025-05-03 23:49:48 +02:00
<!-- badges -->
![PyPI - Version](https://img.shields.io/pypi/v/dismoji)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dismoji)
![PyPI - Types](https://img.shields.io/pypi/types/dismoji)
![PyPI - License](https://img.shields.io/pypi/l/dismoji)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Paillat-dev/dismoji/CI.yaml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Paillat-dev/dismoji/main.svg)](https://results.pre-commit.ci/latest/github/Paillat-dev/dismoji/main)
<!-- end badges -->
A Python library for converting Discord emoji names to their Unicode equivalents.
2025-05-03 23:49:48 +02:00
</div>
## Table of Contents
- [Overview](#overview)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Features](#features)
- [Limitations](#limitations)
- [Getting Help](#getting-help)
- [Development](#development)
- [Contributing](#contributing)
2025-05-03 23:49:48 +02:00
- [License](#license)
## Overview
2025-05-04 00:48:55 +02:00
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 "😄").
2025-05-03 23:49:48 +02:00
This library uses
[Paillat-dev/discord-emojis](https://github.com/Paillat-dev/discord-emojis) as the
source for Discord emoji names and aliases.
2025-05-03 23:49:48 +02:00
## Installation
```bash
pip install dismoji
2025-05-03 23:49:48 +02:00
```
## Quick Start
<!-- quick-start -->
```python
import dismoji
2025-05-03 23:49:48 +02:00
# 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! 🥳"
2025-05-03 23:49:48 +02:00
```
## 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
2025-05-03 23:49:48 +02:00
## Getting Help
If you encounter issues or have questions about dismoji:
2025-05-03 23:49:48 +02:00
- **GitHub Issues**:
[Submit a bug report or feature request](https://github.com/Paillat-dev/dismoji/issues)
- **Discord Support**: Join the [Pycord Official Server](https://discord.gg/pycord) and
mention `@paillat`
2025-05-03 23:49:48 +02:00
## 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 .`,
2025-05-03 23:49:48 +02:00
`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