Skip to main content

DocFGP

PyPI version PyPI downloads CI License: Apache-2.0

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 matching
  • OCR and visual fingerprints for scanned documents

Requirements

  • Python 3.11+
  • Linux (x86_64, aarch64), macOS, or Windows (x64)

Installation

pip install docfgp
pip install "docfgp[office]"     # DOCX and PPTX
pip install "docfgp[languages]"  # OCR for non-Latin scripts

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
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.5.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.5.0
File Size Uploaded Provenance Actions
docfgp-0.5.0.tar.gz 72.5 kB With provenance Details for docfgp-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for docfgp 0.5.0
File Actions
docfgp-0.5.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for docfgp-0.5.0-cp311-abi3-win_amd64.whl
docfgp-0.5.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for docfgp-0.5.0-cp311-abi3-manylinux_2_28_x86_64.whl
docfgp-0.5.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for docfgp-0.5.0-cp311-abi3-manylinux_2_28_aarch64.whl
docfgp-0.5.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for docfgp-0.5.0-cp311-abi3-macosx_11_0_arm64.whl
docfgp-0.5.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for docfgp-0.5.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 1.0 MB

Release files / docfgp-0.5.0.tar.gz

Download URL docfgp-0.5.0.tar.gz
Size 72.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5859c6ff96747a6cf7fda9c6bd2170ed0b4e965f133c8a8cb265e0641bcf9c66
BLAKE2b-256 checksum
How to use checksums
1e311c3396d0090081ac053cd210be655469e8e5caf6345d06fe608df72605f5
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 18, 2026.

Transparency log

Release files / docfgp-0.5.0-cp311-abi3-win_amd64.whl

Download URL docfgp-0.5.0-cp311-abi3-win_amd64.whl
Size 127.9 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
412ee7a43cd2a325c17f3c8fd9f42d2f1c08374d80e762afe160958b0dfb243c
BLAKE2b-256 checksum
How to use checksums
98163bc2013091502df8015b9d8936309474451e372f29570390f9653b184301
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 18, 2026.

Transparency log

Release files / docfgp-0.5.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL docfgp-0.5.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 217.3 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
fa31d3766330cd78ff24f50feffa0d727a10e935b9e416b5ccfd8fde6b683dcd
BLAKE2b-256 checksum
How to use checksums
4824e1be82a30d834843f5d60f9abbbfb57176b5d75c40492f06a26fb17e7852
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 18, 2026.

Transparency log

Release files / docfgp-0.5.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL docfgp-0.5.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 213.4 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
548b1d425675fc3dfd885d8edc687bb1d605bf6e526ffaf60017a0e4e9ceca5b
BLAKE2b-256 checksum
How to use checksums
893f8116b8dd15db03488ef1e3e338f183fe737d6af5ea8599a49dbd6fbf29ad
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 18, 2026.

Transparency log

Release files / docfgp-0.5.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL docfgp-0.5.0-cp311-abi3-macosx_11_0_arm64.whl
Size 201.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d49f0dba5c2fff457aed6688610ef082ee6004af4adb3b3a626b0ca42e877f9e
BLAKE2b-256 checksum
How to use checksums
97df714820758e7d3b7420329ff2514841991d9d6aa5fb6b8e4c437c848c97b6
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 18, 2026.

Transparency log

Release files / docfgp-0.5.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL docfgp-0.5.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 206.2 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
bd05f9f4de09e055f2ef3bbb613dc19c2a147ea44d9f498af0b65ef05d3b41e9
BLAKE2b-256 checksum
How to use checksums
fe19d3edcb9456a2c5b37369986fff40e2fceb237f26b61740ed0713b743c7f1
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 18, 2026.

Transparency log

Security for docfgp 0.5.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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for docfgp-0.5.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 18, 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