Skip to main content

DocFGP

PyPI version PyPI downloads CI License: MIT

DocFGP creates text and visual fingerprints for finding duplicates, near-duplicates, and shared passages across document formats.

Features

  • PDF, DOCX, PPTX, PNG, JPEG, TIFF, BMP, and WebP support
  • Exact, near-duplicate, and partial-match
  • OCR and visual fingerprints for scanned documents

Requirements

Installation

pip install docfgp

Python API

from docfgp import Fingerprinter

fingerprint = Fingerprinter().fingerprint("report.pdf")
record = fingerprint.to_dict()
Field Description
schema_version Fingerprint data format version
algorithm_version Feature-generation version
source_format Detected input format
byte_size Original file size in bytes
page_count Number of pages or image frames
exact_hashes Raw and canonical-text SHA-256 hashes
lookup_keys Word, character, passage, and visual candidate keys
minhash Word-shingle MinHash sketch
char_minhash Character-shingle MinHash sketch
shingle_counts Hashed five-word shingle occurrence counts
shingle_total Total five-word shingle occurrences
shingle_unique Distinct five-word shingle hashes
passage_anchors Selected passage fingerprints
page_hashes Per-page visual hashes and lookup keys
quality Evidence status, page provenance, and warnings
parameters Parameters used to construct the fingerprint

CLI

docfgp report.pdf > report.fingerprint.json

Metadata

Release files for docfgp 0.1.1

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

Source distribution (sdist)

Source distribution for docfgp 0.1.1
File Size Uploaded Provenance Actions
docfgp-0.1.1.tar.gz 15.1 kB With provenance Details for docfgp-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 34.2 kB

Release files / docfgp-0.1.1.tar.gz

Download URL docfgp-0.1.1.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2e2b798a1ce812b92f436e1c40bd7d332a6aab106397f2fc35e40bdb00176c9b
BLAKE2b-256 checksum
How to use checksums
b85c4f8902c89361942a120b0157b6784f20c0535fdfe9537e7449534e6a48d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / docfgp-0.1.1-py3-none-any.whl

Download URL docfgp-0.1.1-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81a6f71728851333e827e6d2941101607408765576c7d8245663c127f6382f3c
BLAKE2b-256 checksum
How to use checksums
1140e34c5a1ea9fbdbd99158d97e127167dd1776b83de597820d89608864c417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for docfgp 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docfgp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

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