Detect whether the terminal supports advanced Unicode.
Project description
> is-unicode-supported
Detect whether the terminal supports advanced Unicode.
Checks if terminal supports advanced Unicode (CJK, emoji, etc.) by measuring the cursor position of a single, wide char (𠀀). On Windows, returns False for legacy consoles (CMD). On all other modern terminals, returns True if the wide char renders as 2 columns.
⚡ Installation
pip install is-unicode-supported
💻 Command line usage
is-unicode-supported # or isunicodesupported
# e.g. => True
CLI options:
| Option | Description |
|---|---|
-h, --help |
Show help screen |
-v, --version |
Show version |
--docs |
Open docs URL |
🔌 API usage
import is_unicode_supported
if is_unicode_supported():
print('Advanced Unicode supported!')
else:
print('Advanced Unicode not supported!')
Note: Most type checkers will falsely warn is_unicode_supported is not a callable module because they are incapable of analyzing runtime behavior (where the module is replaced w/ a function for cleaner, direct access). You can safely suppress such warnings using # type: ignore.
MIT License
Copyright © 2026 Adam Lui.
Related
🇪🇸 latin-locales - ISO 639-1 (2-letter) codes for Latin locales.
🇨🇳 non-latin-locales - ISO 639-1 (2-letter) codes for non-Latin locales.
🌍 translate-messages - Translate en/messages.json (chrome.i18n format) to 100+ locales automatically.
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
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 is_unicode_supported-1.0.2.tar.gz.
File metadata
- Download URL: is_unicode_supported-1.0.2.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9c86897899173dca9bde19cb00fd3e53eb9a3e98859f986780b64a5d2b52eff
|
|
| MD5 |
1ba46ea265c0d6fccd989bfcfdc145ba
|
|
| BLAKE2b-256 |
bfb7a171374083a5db6fd66cfdca30d006db543858a1bab99a4fc42895046bc1
|
File details
Details for the file is_unicode_supported-1.0.2-py3-none-any.whl.
File metadata
- Download URL: is_unicode_supported-1.0.2-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fa3b9a754ef684349e4f8c9b61e6edb6e8de3e7802e456ae98124dfdf082d59
|
|
| MD5 |
6bfba0ad063b572f13bfc6221ee8ceb5
|
|
| BLAKE2b-256 |
91da3cef3c6a567493659aa95d03e3a08d749a5ef7418a22447fdd3f4a399367
|