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.3.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.3-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dendro_text-2.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ca53f52020bf53e6cd11b47db8cfbb74b4d42f31f91302d402c4727a18f61b48
MD5 574c0b800f045c6345b70a454d96a4d4
BLAKE2b-256 8ce942f3594aa134a0e889667ed8a6c34dcffa7307bb9de1673b59d4bb4e105f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dendro_text-2.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c731f8127a51507e1c9f19eda19b78fe6128e8b636a34ad586ba00249aec7fa
MD5 db4986e4f1438c900b032cd892810ed1
BLAKE2b-256 1449945204817c83dde2d45da10b1405f046a967df6d894435dfd479ad859791

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