Welcome to chardetails’s documentation!

Chardetails is a python library to get details of the charecters of a given unicode encoded string.

class chardetails.core.CharDetails[source]

Shows the Unicode Character Details of a given character

get_info()[source]

Gives Info on the module

get_module_name()[source]

Returns modules Name

getdetails(text)[source]

Gives details of all charecters in the given string.

Parameters:text (str.) – The unicode string to be examined.
Returns:dictionary with details.
>>> import chardetails.getInstance
>>> a = getInstance()
>>> a.getdetails(u"run")
{'Characters': [u'r', u'u', u'n'],
u'n': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'n'",
'Digit': 'False',
'HTML Entity': '110',
'Name': 'LATIN SMALL LETTER N'},
u'r': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'r'",
'Digit': 'False',
'HTML Entity': '114',
'Name': 'LATIN SMALL LETTER R'},
u'u': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'u'",
'Digit': 'False',
'HTML Entity': '117',
'Name': 'LATIN SMALL LETTER U'}}
chardetails.core.getInstance()[source]

Returns an instance of CharDetails class.

Indices and tables

Table Of Contents

Related Topics

This Page