Skip to main content

Inspect Unicode characters and display tables with code points, names, glyphs, and encodings (UTF-8/16/32) in hexadecimal and bits

Project description

unicode-inspect

Inspect Unicode characters and display tables with code points, names (character concepts), glyphs, and encodings (UTFโ€‘8/16/32) in hexadecimal and bits.

Local installation

pip install -e .

Requirements: Python >= 3.8

CLI usage

unicode-inspect "Aโ‚ฌ๐Ÿ˜€"

Example output (default table format):

โ•’โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ••
โ”‚ Code point   โ”‚ Character concept (Unicode name)          โ”‚ Visual representation (glyph) โ”‚ Decimal  โ”‚ UTF-8 (hex)  โ”‚ UTF-8 (bit)                                     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ U+0041       โ”‚ LATIN CAPITAL LETTER A                    โ”‚ A                      โ”‚ 65        โ”‚ 41           โ”‚ 01000001                                           โ”‚
โ”‚ U+20AC       โ”‚ EURO SIGN                                 โ”‚ โ‚ฌ                      โ”‚ 8364      โ”‚ E2 82 AC     โ”‚ 11100010 10000010 10101100                         โ”‚
โ”‚ U+1F600      โ”‚ GRINNING FACE                             โ”‚ ๐Ÿ˜€                     โ”‚ 128512    โ”‚ F0 9F 98 80  โ”‚ 11110000 10011111 10011000 10000000                โ”‚
โ•˜โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•›

Change format

unicode-inspect "โ‚ฌ" --format markdown
unicode-inspect "โ‚ฌ" --format csv
unicode-inspect "โ‚ฌ" --format json

Add an additional encoding (besides UTF-8)

unicode-inspect "โ‚ฌ" --encoding utf-16-le

Notes

  • Control, surrogate, or unassigned characters are shown with a placeholder โฃ in the glyph column.
  • UTF-8 is always displayed; the --encoding option adds columns for a second encoding.
  • Use --no-header for compact script-friendly tables.

License

MIT

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

unicode_inspect-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

unicode_inspect-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file unicode_inspect-0.1.0.tar.gz.

File metadata

  • Download URL: unicode_inspect-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for unicode_inspect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8282898fea6b595f8dd19bbec1c8e9ed266195eba5cc7cbdcb01bc97d38e5c59
MD5 29085bb0e8d29c2a0141e39a2300fe08
BLAKE2b-256 af3a0b69b14c50e7826240313a456ee64545eba13fed03354d22a505c5c2764b

See more details on using hashes here.

File details

Details for the file unicode_inspect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unicode_inspect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e23aef04b16613ace7f795eabc59a6587e1255cdbb8cbfc0c79c70afc307256
MD5 c2e31d7e0df20b7781b24bfc45a6d0e9
BLAKE2b-256 d9b719d9d4c44018afe2abe42c559087cc9859ff361d09575696a33649796ca9

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