Skip to main content

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/

Metadata

Release files for demeuk 4.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for demeuk 4.6.3
File Size Uploaded
demeuk-4.6.3.tar.gz 26.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for demeuk 4.6.3
File Interpreter ABI Platform
demeuk-4.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 46.3 kB

Release files / demeuk-4.6.3.tar.gz

Download URL demeuk-4.6.3.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
727931d2fc2912d524689374b825c0708c63152490468f9290bfdc18be09479d
BLAKE2b-256 checksum
How to use checksums
b67437e2a11b03d792f5c84abafa1d3a8c69b186ec76e7d9a1506684835b3e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / demeuk-4.6.3-py3-none-any.whl

Download URL demeuk-4.6.3-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
486d86d015b8f0c596301846674d970e54a9ae436c3a91ecfd737290c25a4d6c
BLAKE2b-256 checksum
How to use checksums
1e095d7578dbfc6b904ee935c7d7cd21839da92c8b365d4d925e9fb5831ed6b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

5.0.0

2 release files

This release

4.6.3 This release

2 release files

4.6.2

2 release files

4.6.1

2 release files

4.6.0

2 release files

4.5.1

2 release files

4.5.0

2 release files

4.4.0

2 release files

4.3.0

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.1

2 release files

3.11.0

2 release files

3.10.1

2 release files

3.10.0

2 release files

3.9.7

2 release files

3.9.6

2 release files

3.9.5

2 release files

3.9.4

2 release files

3.9.2

2 release files

3.9.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page