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

Uploaded Source

Built Distribution

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

demeuk-4.6.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: demeuk-4.6.3.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for demeuk-4.6.3.tar.gz
Algorithm Hash digest
SHA256 727931d2fc2912d524689374b825c0708c63152490468f9290bfdc18be09479d
MD5 92b0726c887215d39374fcd351d0edf0
BLAKE2b-256 b67437e2a11b03d792f5c84abafa1d3a8c69b186ec76e7d9a1506684835b3e10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: demeuk-4.6.3-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for demeuk-4.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 486d86d015b8f0c596301846674d970e54a9ae436c3a91ecfd737290c25a4d6c
MD5 524098d19adff9413e1abd743dd78e83
BLAKE2b-256 1e095d7578dbfc6b904ee935c7d7cd21839da92c8b365d4d925e9fb5831ed6b7

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