Skip to main content

CLI tool to remove invalid chars from a corpus.

Project description

Demeuk

Documentation Status Tests

Demeuk is a simple tool to clean up corpora (like dictionaries) or any dataset containing plain text strings. Example use cases are: cleaning up language dictionaries, password sets (like for example RockYou) or any file / stdin containing plain text strings.

In those corpora you'll find encoding mistakes that have been made, or you want to remove some parts of a line. Instead of creating a huge bash oneliner you can use demeuk to do all your cleaning.

Example usages:

  • Cutting
  • Length checking
  • Encoding fixing

Demeuk is written in Python3, this means of course that it is slower than for example cut. However, Demeuk is written multithreaded and thus can use all your cores. Besides this Demeuk can easily be extended to match your needs.

This application is part of the CERBERUS project that has received funding from the European Union's Internal Security Fund - Police under grant agreement No. 82201

Please read the docs for more information.

Quick start

The recommended way to install demeuk is to install it in a virtual environment.

# Create virtual environment
virtualenv <virtual environment name>
# Activate the virtual environment
source <virtual environment name>/bin/activate
pip3 install -r requirements.txt

Now you can run bin/demeuk.py:

Examples:

    demeuk -i inputfile.tmp -o outputfile.dict -l droppedfile.txt
    demeuk -i inputfile -o outputfile -j 24 -l logfile.log
    demeuk -i inputfile.tmp -o outputfile.dict -l droppedfile.txt --leak
    demeuk -i inputfile -o outputfile -j 24 -l logfile.log --leak-full
    demeuk -i inputdir/*.txt -o outputfile.dict -l logfile.log
    demeuk -o outputfile.dict -l logfile.log

Docs

The docs are available at: http://demeuk.rtfd.io/

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

demeuk-4.5.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

demeuk-4.5.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file demeuk-4.5.1.tar.gz.

File metadata

  • Download URL: demeuk-4.5.1.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for demeuk-4.5.1.tar.gz
Algorithm Hash digest
SHA256 5ce0e1b28658af8ead7c5a6d25a00c015e8c9a26ccf7eba28e989c88c7d156f3
MD5 fcaa6b4a9843ccd1d28d1e786af8cb2e
BLAKE2b-256 cbb41e6f13c33d58b26411e3b686d9f5ce747f004e17dbb16caaacb3117d7dd7

See more details on using hashes here.

File details

Details for the file demeuk-4.5.1-py3-none-any.whl.

File metadata

  • Download URL: demeuk-4.5.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for demeuk-4.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0155db0b718dbd1388e86e4d9569dc9350fe1c1cbfa0a8d03e5307fbf1a1dd8
MD5 719d435ae311cb7c3b4023a3c09de9d1
BLAKE2b-256 07b1c9db25092611b7502cfac42201a731e934d4246e347ffac6097def371adf

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