Skip to main content
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'

Metadata

Release files for alphabet 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alphabet 0.0.8
File Size Uploaded
alphabet-0.0.8.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alphabet 0.0.8
File Interpreter ABI Platform
alphabet-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / alphabet-0.0.8.tar.gz

Download URL alphabet-0.0.8.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8df7dda2c1f3783c39e453da3805a0e41aa7c17de2ad62822b076cc4679692af
BLAKE2b-256 checksum
How to use checksums
c404564876476ecba08fd94a8498f71e0677fbd979a0791cda9f3b9f1684c3e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release files / alphabet-0.0.8-py3-none-any.whl

Download URL alphabet-0.0.8-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50985e5fc5a16f10b4ed416fef264c33e0c44d52ebe73fcd1b2aafda23d4dd36
BLAKE2b-256 checksum
How to use checksums
3cf770efe8ebd67033cb74c5ac3ca14bc9c99885bcf6ba64ca740e6d4c2c4096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

1 release file

0.0.6

2 release files

0.0.5

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page