Uses various methods to recognize text
Project description
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 details)
Built Distribution
File details
Details for the file alphabet-0.0.8.tar.gz
.
File metadata
- Download URL: alphabet-0.0.8.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df7dda2c1f3783c39e453da3805a0e41aa7c17de2ad62822b076cc4679692af |
|
MD5 | f99c516a98c7a923148f00b79b5e6d44 |
|
BLAKE2b-256 | c404564876476ecba08fd94a8498f71e0677fbd979a0791cda9f3b9f1684c3e3 |
File details
Details for the file alphabet-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: alphabet-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50985e5fc5a16f10b4ed416fef264c33e0c44d52ebe73fcd1b2aafda23d4dd36 |
|
MD5 | b38210e0dcef6bf4005f6aec774af715 |
|
BLAKE2b-256 | 3cf770efe8ebd67033cb74c5ac3ca14bc9c99885bcf6ba64ca740e6d4c2c4096 |