Home
Softono
k

kjd

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by kjd

idna
Open Source

idna

idna is a Python library providing support for Internationalized Domain Names in Applications (IDNA), implementing both the IDNA 2008 specification (RFC 5891) and Unicode IDNA Compatibility Processing (UTS 46). It supersedes the standard library's encodings.idna, which only supports the older 2003 specification, offering broader script coverage and restricting domains with known security vulnerabilities. The library offers encode and decode functions that convert domain names between Unicode (U-labels) and ASCII-compatible (A-labels) representations. Per-label conversion is possible through ulabel and alabel functions. UTS 46 compatibility mapping can be applied during encoding to normalize input from various user input methods, accepting domains that are not strictly valid IDNA 2008 by normalizing them first. A display option for decoding leaves undecodable xn-- labels unchanged, useful for user interface display. The library raises specific exceptions for conversion errors: IDNAError as the base class, IDNA

Developer Tools DNS & Domain Tools
286 Github Stars