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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gibberish_detector-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gibberish_detector-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 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.0.tar.gz
Algorithm Hash digest
SHA256 166be609c3ef205f26fe64649460f7384798a043fb2d81085c2324ee56746d53
MD5 8ec6fd9d1cf1eda4a507b0da84feeb57
BLAKE2b-256 277549df196997f31f4bd1fb10f599ede0dc61a3302ada23462eae69a7759ff1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gibberish_detector-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdeb07a19b40e9300e296c7dd610c9d65a6cfcf873ffea91e4129000d03e17f9
MD5 fad9f44657e7b9a1ab7de543bce740b3
BLAKE2b-256 9ec3502066feb6826eab7d835ae919c9695acbe9f97f1e08453c87d960fd30d3

See more details on using hashes here.

Supported by

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