Skip to main content

Detects gibberish strings.

Project description

PyPI version

Gibberish Detector

This is based off https://github.com/rrenaud/Gibberish-Detector, and adapted so that it is a Python3 module.

Examples

Quickstart:

$ gibberish-detector train examples/big.txt > big.model
$ gibberish-detector detect --model big.model --string "ertrjiloifdfyyoiu"
True

Training Large Corpuses:

$ gibberish-detector train $(ls examples) > generic.model

Interactive Detection:

$ gibberish-detector detect --model big.model --interactive
Entering interactive mode. Press ctrl+d to quit.
Input text: superman
False (2.375)
Input text: ertrjiloifdfyyoiu
True  (4.154)

Installation

pip install gibberish-detector

Usage

$ gibberish-detector -h
usage: gibberish-detector [-h] [--version] {train,detect} ...

positional arguments:
  {train,detect}
    train         Trains a model to be used for gibberish detection.
    detect        Uses a trained model to identify gibberish strings.

optional arguments:
  -h, --help      show this help message and exit
  --version       Display version information.

You can also use this as an imported module:

>>> from gibberish_detector import detector
>>> Detector = detector.create_from_model('big.model')
>>> print(Detector.is_gibberish('ertrjiloifdfyyoiu'))
True

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

gibberish_detector-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

gibberish_detector-0.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file gibberish_detector-0.1.1.tar.gz.

File metadata

  • Download URL: gibberish_detector-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.8

File hashes

Hashes for gibberish_detector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 26264782f6d16f90ef03b209e255ec50ef6de6d258404b4b4cd468ebc069758c
MD5 5530437ec2df968a06ffc87faa82cde0
BLAKE2b-256 f624a5c518032bdb704128ee96f26ac20d9bc60ac32bb71bf3af0424ab287ac1

See more details on using hashes here.

File details

Details for the file gibberish_detector-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gibberish_detector-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.8

File hashes

Hashes for gibberish_detector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 520dd48533c4bd30b2a6051c26131369d946c147288c5f7fce4e125a0e5d341d
MD5 9dd67bbecd8d5ac11db0ae6d1f4cd540
BLAKE2b-256 3a702ba30513075aac4df46849a086037ce36e1e7ca1f87f84840c8bc40825e6

See more details on using hashes here.

Supported by

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