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.0

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.0
File Size Uploaded Provenance Actions
docfgp-0.1.0.tar.gz 29.3 kB With provenance Details for docfgp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 48.5 kB

Release files / docfgp-0.1.0.tar.gz

Download URL docfgp-0.1.0.tar.gz
Size 29.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb0b43d31b7af7b52f74b2202832722bfd4468ce1666e2ff3b67a88f389ecbd5
BLAKE2b-256 checksum
How to use checksums
b011a96b347a3e83f311f2dcf9727ec3cd55ba6fc003d30b373bbe91354c1f97
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.0-py3-none-any.whl

Download URL docfgp-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7ce7c80e6f6b45f5ac32f5e0bad6f05638c3b28978cbc6698311d05cfe49433
BLAKE2b-256 checksum
How to use checksums
bed8362d6300b412dd9e1b2fa6d0ea28e0e677b6b8303c4394e3d627194dfaa3
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.0

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.0.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