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-match
  • 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[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.3.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.3.0
File Size Uploaded Provenance Actions
docfgp-0.3.0.tar.gz 43.0 MB With provenance Details for docfgp-0.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 386.7 MB

Release files / docfgp-0.3.0.tar.gz

Download URL docfgp-0.3.0.tar.gz
Size 43.0 MB
Tags Source
SHA-256 checksum
How to use checksums
59a300bd5f6c50f009fbc1d1bd66c67f6476bf249d8b0e6d261a5264f46876e2
BLAKE2b-256 checksum
How to use checksums
d9bb9b4bb3bdc3a07fc7c817a55cdc4ba451e05cdfd28f6c954f8e89aa228152
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 11, 2026.

Transparency log

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

Download URL docfgp-0.3.0-cp311-abi3-win_amd64.whl
Size 69.5 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a2c5bc9ee62364697393a542cad4d13aaa41139984d6f49b91e7d7ecb5488253
BLAKE2b-256 checksum
How to use checksums
5df87165e4e5d7b890d3fe824c2941e0bee0136e2a1e39bfd61c6ac563f0e456
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 11, 2026.

Transparency log

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

Download URL docfgp-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 69.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
304a3c9f159dd5fdeec95de7d960bef67313445508476ad1d826664b03dfb93b
BLAKE2b-256 checksum
How to use checksums
182f25ac6622eb6003cf3c49c3bb6011ff73740f909403bef2b8eb13375971f3
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 11, 2026.

Transparency log

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

Download URL docfgp-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 68.5 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
3f99fcb36d20c360b14986d7d49c79dc53621e004c6ab095ba45ded26255bef4
BLAKE2b-256 checksum
How to use checksums
4c6500e97c65bc6884cb320a2de6d4f40e710b38ad1d42dd6a98f99e1614d06e
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 11, 2026.

Transparency log

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

Download URL docfgp-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 67.9 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f0929b7207dbcf90561ab95c2e7d427889aa57535f2df1b9f4d09f57e1ec426
BLAKE2b-256 checksum
How to use checksums
6a87ac59a6ab75650400d5dd2d0d5b5d872777768aa15dadc8bb47f3dbabcbe8
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 11, 2026.

Transparency log

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

Download URL docfgp-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 68.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8b7af2818fff1c4f1df3c3a09257393c01a2651fba85847bf6168d777c5bddf1
BLAKE2b-256 checksum
How to use checksums
1ca9b65491af290dfb54fd1307c69f2f79f2bad9300364a0def2820050ecacfb
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 11, 2026.

Transparency log

Security for docfgp 0.3.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.3.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 11, 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