Skip to main content

zfrag

zfrag is a lightweight Python wrapper around the native frag library for fast text fingerprinting and similarity estimation. It provides a simple Model interface to train on text data, generate compact 64-bit signatures, and quickly compare text snippets via Hamming distance or similarity scoring.

from zfrag import Model

model = Model()
model.train("Sample training text to build the model vocabulary.")

sig_a = model.sign("Hello world")
sig_b = model.sign("Hello there world")

sim = Model.similarity(sig_a, sig_b)
dist = Model.distance(sig_a, sig_b)

print(f"Similarity: {sim:.2f}, Distance: {dist}")

Metadata

Release files for zfrag 0.1.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 zfrag 0.1.3
File Size Uploaded Provenance Actions
zfrag-0.1.3.tar.gz 134.0 kB Without provenance Details for zfrag-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 268.8 kB

Release files / zfrag-0.1.3.tar.gz

Download URL zfrag-0.1.3.tar.gz
Size 134.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c2381fb1d2157f55118cea7ac56a50ec189bdd863040b7563b167790ae305e6
BLAKE2b-256 checksum
How to use checksums
61378c1cc2b9bcdd2d977c7b5c8e51c8ca3406089252c11bcdcb4f95fa1f9825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / zfrag-0.1.3-py3-none-any.whl

Download URL zfrag-0.1.3-py3-none-any.whl
Size 134.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e9d566ea9caec84b10dbba29ee973c69df6d3cfb4119f3d5216b2781d113840
BLAKE2b-256 checksum
How to use checksums
2b58922c16d5967b05e744196c46f52ebe9c8f8c0a18a8ae5c7816fe790dc32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for zfrag 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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