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

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.8
File Actions
gatekeeper_cdr-0.4.8-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for gatekeeper_cdr-0.4.8-cp38-abi3-win_amd64.whl
gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_34_x86_64.whl CPython 3.8 abi3 Linux glibc 2.34+ x86-64 Details for gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_34_x86_64.whl
gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details for gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
gatekeeper_cdr-0.4.8-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for gatekeeper_cdr-0.4.8-cp38-abi3-macosx_11_0_arm64.whl
gatekeeper_cdr-0.4.8-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details for gatekeeper_cdr-0.4.8-cp38-abi3-macosx_10_12_x86_64.whl

Total release size: 7.4 MB

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

Download URL gatekeeper_cdr-0.4.8-cp38-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
78a3f2c1be7d04458df555b34185125eec547f59c1630cb577a3bb8a67b6c65b
BLAKE2b-256 checksum
How to use checksums
080f5d832cdb84060e02cb3d0d6da134816df7eda44a127eeae8fc43420100e8
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.8-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_34_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
28ec26f577f7d5e6eee0e2c63afc42b1a8f18334756101e8b75aac2d6feee515
BLAKE2b-256 checksum
How to use checksums
32e3171d5fabcc94613342ad9bac7e32c551c07fe45036297cbcddbb1130024f
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.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gatekeeper_cdr-0.4.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
e3f52b524dedb5990d30c30236694e6e4a99cede06ff1ab8e0d7a4dda2aeebdb
BLAKE2b-256 checksum
How to use checksums
db19ff7700405cf9020b0321b4978fb69c15f4bdf362db4e1f92773d5900b5a7
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.8-cp38-abi3-macosx_11_0_arm64.whl

Download URL gatekeeper_cdr-0.4.8-cp38-abi3-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
33180d25ae72b8e0298fbf9f2e6f00f79788592238180bade041e82c64282be2
BLAKE2b-256 checksum
How to use checksums
fc2883e496cf738b4b1d924e2d483cd13447c1589bc22d23b0689ffab98631eb
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.8-cp38-abi3-macosx_10_12_x86_64.whl

Download URL gatekeeper_cdr-0.4.8-cp38-abi3-macosx_10_12_x86_64.whl
Size 1.5 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
dd733b269b23f274b06ea04213729eba2bbe0b1a96602bff2cfa486904601729
BLAKE2b-256 checksum
How to use checksums
0aab725d823ba614fccf765d95134a86ab601b9d499b1c65329d7ab819c7a043
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.8

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