Skip to main content

Mangle strings by repeated Google Translate

Project description

Mangle strings by repeated Google Translate

Description

This module offers functions to destroy text by feeding it through multiple languages in Google Translate.

Installation

The project is available on PyPI, so simply invoke the following to install the package:

pip install schwurbler

Usage

Schwurbler’s functions are contained in the schwurbler package, so simply import it:

import schwurbler

The two main functions are fixed path schwurbles and set ratio schwurbles. The former translates text through a fixed set of languages and the latter randomly picks languages to translate a string through until it only resembles the original by a certain token set ratio:

import schwurbler
translated = schwurbler.path_schwurbel(['en', 'ja', 'en'], 'Hello world!')
translates = schwurbler.set_ratio_schwurbel('Hello world!', 'en', ratio=50)

More information on the usage can be found in the API reference.

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 schwurbler, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size schwurbler-1.0.3.tar.gz (18.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page