Skip to main content

Tests

dendro_text

Draw a dendrogram of similarity between text files.

The similarity is measured in terms of Levenshtein edit distance. The distance between given two texts is a count of inserted, deleted, and substituted characters required to modify one text to the other. A smaller value means that the two texts are more similar.

Features:

  • Parallel execution: Supports execution on multiple CPU cores. Plus, jit compilation by Numba (v1.6+).

  • Options in tokenization: By default, the text is compared with a sequence of words extracted by splitting input text into different character types. Optionally, you can compare texts line by line, character by character, or token by token as extracted with lexical analyzers of programming languages.

  • File-centric search: A function to list files in order of similarity to a given file.

  • Diff (Experimental): Diff functionality to show textual differences between files. (This function is provided to check for differences in similarity calculations depending on tokenization.)

Installation

pipx install dendro-text

To uninstall,

pipx uninstall dendro-text

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dendro_text-2.0.2.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

dendro_text-2.0.2-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file dendro_text-2.0.2.tar.gz.

File metadata

  • Download URL: dendro_text-2.0.2.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-28-generic"}} HTTPX2/2.3.0

File hashes

Hashes for dendro_text-2.0.2.tar.gz
Algorithm Hash digest
SHA256 c8ca81ebdeb88d6846440a16069a3e0b86d7d491a6c364a3a7e78cb06f0119fc
MD5 381ba2363e2c39b4a3d0c5ce46b90a05
BLAKE2b-256 669223f609ff9a145a5eb14683cc4b3cad6cf6ac79adbf7d7f4bf9982244687e

See more details on using hashes here.

File details

Details for the file dendro_text-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: dendro_text-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-28-generic"}} HTTPX2/2.3.0

File hashes

Hashes for dendro_text-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad0050fa0ad40566ad54a2854ad26798c7c1b663a8a3bdf657d476ffdd86c420
MD5 644af5d75b21793acea06afd6568708e
BLAKE2b-256 e53e480a83cc0503902163ab9e6c650c7e89428b56f2b322d3221d0700f94623

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 Sentry Error logging StatusPage Status page