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.

Source Distribution

schwurbler-1.0.3.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file schwurbler-1.0.3.tar.gz.

File metadata

  • Download URL: schwurbler-1.0.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for schwurbler-1.0.3.tar.gz
Algorithm Hash digest
SHA256 55fb065e7cd704ee93582a3648629bb0c121b2f0420081985abdccfb8471031f
MD5 349c8636f65ebac6a1497ed558b1794d
BLAKE2b-256 f08a509b51f1ecc16719e978ac611a271edf7e8dced2f86cf3daaccb7fb6d281

See more details on using hashes here.

Supported by

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