Skip to content

realeroberto/alphabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alphabet

PyPI

alphabet uses various methods to recognize text.

Installation

The easiest way to install the package is via pip:

$ pip install alphabet

Usage

from alphabet import alphabet

alphabet('%!').identify()
> 'PostScript document text'

alphabet('import os').identify()
> 'Python'

alphabet('<div>foobar</div>').identify()
> 'XML'

alphabet('Привет').identify()
> 'ru'