Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A string class enhancement

Project description

PyPI

alphabet is a Python string class enhancement.

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.

Files for alphabet, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size alphabet-0.0.6-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size alphabet-0.0.6.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page