Skip to main content

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 (𠀀). Returns False for legacy consoles or 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.

More Python utilities / Back to top ↑

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

is_unicode_supported-1.1.2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

is_unicode_supported-1.1.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file is_unicode_supported-1.1.2.tar.gz.

File metadata

  • Download URL: is_unicode_supported-1.1.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for is_unicode_supported-1.1.2.tar.gz
Algorithm Hash digest
SHA256 0c6e18d80a7e94e7d0b79fdd03bfec54f079c3f096d1c53732baf0a17ac45efe
MD5 680433e6abb42266dbd04f9445d516d7
BLAKE2b-256 1a967c20ca77a8f08db004fbd079933c5569f385967280251a2d13317dda7725

See more details on using hashes here.

File details

Details for the file is_unicode_supported-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for is_unicode_supported-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7fcc6e739f395ad370fa38832f266b3469e7765c4fc03ff0a8b55623fe72f76
MD5 58b2cd33d4d590526bd0398fc404ce5c
BLAKE2b-256 42855c3780556aefdcf5ba0f4587586f5025d9aaad7e154e147cb6d6611de798

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