Skip to main content

Gatekeeper CDR (Python)

This package provides native Python bindings to the Gatekeeper CDR core, a zero-trust Content Disarm and Reconstruction engine. It sanitizes potentially malicious files by deeply inspecting and rebuilding them from raw pixel data, effectively stripping away any steganography, macros, or hidden exploits.

Installation

pip install gatekeeper-cdr

(Note: Pre-built wheels are provided for Linux, macOS, and Windows. You do not need Rust installed to use this package).

Usage

import gatekeeper_cdr

# 1. Read a suspicious file
with open("suspicious.jpg", "rb") as f:
    raw_payload = f.read()

# 2. Detect the true format of the file without fully parsing it
try:
    fmt = gatekeeper_cdr.sniff_format(raw_payload)
    print(f"Detected Format: {fmt}") # "Jpeg", "Png", etc.
except Exception as e:
    print(f"Unknown or invalid format: {e}")

# 3. Disarm the file (returns a clean bytes object)
try:
    clean_payload = gatekeeper_cdr.disarm(raw_payload)
    with open("clean.png", "wb") as f:
        f.write(clean_payload)
    print("File successfully sanitized and saved as clean.png!")
except Exception as e:
    print(f"Failed to sanitize file: {e}")

Security

If the file is malformed, structurally invalid, or contains an unknown format, Gatekeeper will intentionally raise an Exception rather than attempting to process it. This default-deny stance ensures that only provably safe files make it into your application's storage.

Metadata

Release files for gatekeeper-cdr 0.4.6

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

Built distributions (wheels)

Table of built distributions (wheels) for gatekeeper-cdr 0.4.6
File Actions
gatekeeper_cdr-0.4.6-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for gatekeeper_cdr-0.4.6-cp38-abi3-win_amd64.whl
gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_34_x86_64.whl CPython 3.8 abi3 Linux glibc 2.34+ x86-64 Details for gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_34_x86_64.whl
gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details for gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
gatekeeper_cdr-0.4.6-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for gatekeeper_cdr-0.4.6-cp38-abi3-macosx_11_0_arm64.whl
gatekeeper_cdr-0.4.6-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details for gatekeeper_cdr-0.4.6-cp38-abi3-macosx_10_12_x86_64.whl

Total release size: 7.9 MB

Release files / gatekeeper_cdr-0.4.6-cp38-abi3-win_amd64.whl

Download URL gatekeeper_cdr-0.4.6-cp38-abi3-win_amd64.whl
Size 1.5 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
620c8b3ce0ede8d9dee1b9447c2104e181f79e51989c324ac5f2f567dbedd44b
BLAKE2b-256 checksum
How to use checksums
7583e6bc51bd6a373ae6c3bec07e3947e43636306ebe0979f591cb73870b8ea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_34_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
1964da3d09a4c2c3be302340dfcb0afedb63c741c812063ba9ff4545ede3a8d9
BLAKE2b-256 checksum
How to use checksums
8b0730b5d60ba2ce1d4d716716c58b898641ea9c84e2158eeff9027928592d90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gatekeeper_cdr-0.4.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4193130c5dc0dad6e356d778265026d8d4eb40ffc873f00690d977424f78b3ab
BLAKE2b-256 checksum
How to use checksums
b63a107174f66fbe6e9c33e4a9e1dc770afdf93bd1c987e4bd0e2b1d7bcadd00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / gatekeeper_cdr-0.4.6-cp38-abi3-macosx_11_0_arm64.whl

Download URL gatekeeper_cdr-0.4.6-cp38-abi3-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0d5b987a3f273ab62a7dd7f228ea61a4db76317b36eac4117cbf13304e7396d2
BLAKE2b-256 checksum
How to use checksums
f87467b08449a115f90cfcd6a6c115a8822f05ab30f0a8f4635c0e4399e9ecba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / gatekeeper_cdr-0.4.6-cp38-abi3-macosx_10_12_x86_64.whl

Download URL gatekeeper_cdr-0.4.6-cp38-abi3-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
33ba252ccfb264f2cbd0711a7c4ef0b734aced9075d7af5c8aa3ca97a66f7076
BLAKE2b-256 checksum
How to use checksums
c1451cf85b95d568bc405538ab9aa38f915e0b25694ba916614fe31df92cccba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for gatekeeper-cdr 0.4.6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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