A tool that reformat string with Minecraft text formatting to Telegram HTML.
Project description
minetotg
This project was created in order to help Minecraft community to transform game text formatting to Telegram HTML format.
Installation
pip install minetotg
Usage
Python Module
from minetotg import reformat
some_reformatted_string = reformat("§kSpoiler§r§lBold§r")
print(some_reformatted_string) # Output: <tg-spoiler>Spoiler</tg-spoiler><b>Bold</b>
CLI
python -m minetotg §kSpoiler§r§lBold§r
Output:
<tg-spoiler>Spoiler</tg-spoiler><b>Bold</b>
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
minetotg-1.1.1.tar.gz
(3.6 kB
view details)
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 minetotg-1.1.1.tar.gz.
File metadata
- Download URL: minetotg-1.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5eaba9442f25385da69d43122f1ba1074bab0a52170eeed8d73f8f4073f6216
|
|
| MD5 |
2237953068d3ecdf343d46c52cbcf42b
|
|
| BLAKE2b-256 |
75e7d9b5cd84828e8c026845b8fd64a911381a2ba2d002a325e46f9294a4618b
|
File details
Details for the file minetotg-1.1.1-py3-none-any.whl.
File metadata
- Download URL: minetotg-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c9e94e82b576a11dcf22febdc89a6066e8121650afd5a207ed0af357a48ca2e
|
|
| MD5 |
ccfa38ee5159925788fe8e9f57756aef
|
|
| BLAKE2b-256 |
8acfecd454812c8608fcf1a88b1a827bde32362db64671ff8a9db5df07e7c287
|