Skip to main content

Detects gibberish strings.

Project description

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.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

gibberish_detector-0.0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gibberish_detector-0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 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.0.1.tar.gz
Algorithm Hash digest
SHA256 e6aae362883a4463457dcbf044bc3f0bd39503f42aafc5d654bb42d86f8972fc
MD5 0be43c54dfd0f8d78e3e7deaf1f1fc9a
BLAKE2b-256 1a7f84c20ecdd1bb88b864c75c6b77543863f13e07aa2113cda7c8cda9e9b62d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: gibberish_detector-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6937bf4730dde04a12d7ec0da17550cd7fb14fec8807a7c9598cd698b60a0366
MD5 19b38cd549ce1d33abc9eeebaef1e880
BLAKE2b-256 9e6b8699f8f443a75776e2f74a90dc5c7edcd51aef722c1a8cbc07e1397a8d1f

See more details on using hashes here.

Provenance

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