Skip to main content

Uses various methods to recognize text

Project description

PyPI

alphabet uses various methods to recognize text.

Installation

The easiest way to install the package is via pip:

$ pip install alphabet

Usage

Obfuscation

from alphabet import alphabet

key = "foobar"
s = alphabet.alphabet("python")

print(s)
> python

t = s.obfuscate(key)
print(bytes(t, 'utf-8'))
> b'\x16\x16\x1b\n\x0e\x1c'

print(t.obfuscate(key))
> python

Identify a string

from alphabet import alphabet

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

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

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

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

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

alphabet-0.0.8.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

alphabet-0.0.8-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page