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

  • 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
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.2.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.2.0
File Size Uploaded Provenance Actions
docfgp-0.2.0.tar.gz 43.0 MB With provenance Details for docfgp-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 386.7 MB

Release files / docfgp-0.2.0.tar.gz

Download URL docfgp-0.2.0.tar.gz
Size 43.0 MB
Tags Source
SHA-256 checksum
How to use checksums
f216b8415a78b76d7ac980d62b09ae0dc736e4b1e6c1f00fd5324fbb0160170f
BLAKE2b-256 checksum
How to use checksums
f0050ba09ff40de519b5985d994b54a60490fd6157e9c1096eef11c42e0ae0da
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 10, 2026.

Transparency log

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

Download URL docfgp-0.2.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
e55c2db71eb4d0ad36711213233468d73ed342f76df4303ac0317153a20b7709
BLAKE2b-256 checksum
How to use checksums
1736dca9c7b09f1ded3d7f023f593924d9652b62ff8a4adefcffdf2961db88d0
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 10, 2026.

Transparency log

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

Download URL docfgp-0.2.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
23e22196e33887f91bf14fe3c71ef3d2e9fedf9c287095ca48ef0ca73b035f8d
BLAKE2b-256 checksum
How to use checksums
8b632529c3392d8602982453409fd7d08e7d28eb273f693cb29482fbe3152622
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 10, 2026.

Transparency log

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

Download URL docfgp-0.2.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
f7824c47a3470d9adf5e924dbcc2807ec8fd4d353bae6d4339f01362c8103ac1
BLAKE2b-256 checksum
How to use checksums
5f0a485d15a7a49124299babfc9d827b4b191907a1d4670c19799a43555fbc56
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 10, 2026.

Transparency log

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

Download URL docfgp-0.2.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
70f05cff016105c39f01d7a6a082db65db8b1c09d1f9462f2cd7ec9d41c91fc7
BLAKE2b-256 checksum
How to use checksums
fac5f3aa5c49b014681ce102d4976f0220fe4d174b36017f2c24534c3a748104
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 10, 2026.

Transparency log

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

Download URL docfgp-0.2.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
042a5dbc52fb816a1a301af930b208dee02e43c779f2fff0b28e1bb5b6cc3f5f
BLAKE2b-256 checksum
How to use checksums
474a15e769adca72a4bd8cc04c67cf26dd975862c56924d3c06d6f955edc6b97
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 10, 2026.

Transparency log

Security for docfgp 0.2.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.2.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 10, 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