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

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

Total release size: 7.9 MB

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

Download URL gatekeeper_cdr-0.4.5-cp38-abi3-win_amd64.whl
Size 1.5 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
35014e86ae14d700b64e0e11cd8367000e46f58612c278d8deeaa35c03c38fa3
BLAKE2b-256 checksum
How to use checksums
7e31f30c2b303324ddddcd32446aa980183e95ab5040dedc44fe97cc068bbcb6
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.5-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL gatekeeper_cdr-0.4.5-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
59d41c9582b7faa2ec35fbdd0b147cc34b359084e50e12963292ebad347427a8
BLAKE2b-256 checksum
How to use checksums
6383c554bda5137ebcca445ec1899969b85e0d021670c95f74157305d60b919d
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.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gatekeeper_cdr-0.4.5-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
a11a42fbf3c3660ecaf016bf753120589248bc211d3a6555859f7790b44d472e
BLAKE2b-256 checksum
How to use checksums
286bd1259f11e68bfbdaf9b07907feeca0e993624a21a7f2b8f966cc9270fd29
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.5-cp38-abi3-macosx_11_0_arm64.whl

Download URL gatekeeper_cdr-0.4.5-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
e9b21d39bcadb9d370e421066b9ee3a15fb2d82d9111bf991db9e5d17c619211
BLAKE2b-256 checksum
How to use checksums
4fa8c6475b1e3629b9e524af9c3a81e9157cd57b9712e924e63c8956c0da8288
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.5-cp38-abi3-macosx_10_12_x86_64.whl

Download URL gatekeeper_cdr-0.4.5-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
75935d41564b475111965c13119f42db5ca7151398993f91ed3e59c683bd24d6
BLAKE2b-256 checksum
How to use checksums
72755b7ecbeef9798e136572b12fd4eb179390c01bcce8e99216f11a56097a78
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.5

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