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

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

Total release size: 7.9 MB

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

Download URL gatekeeper_cdr-0.4.4-cp38-abi3-win_amd64.whl
Size 1.5 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6d4c86f5d04bae83606b37bca1d419bb5c2a0bae5c2e16873641c8dcd1ce214a
BLAKE2b-256 checksum
How to use checksums
a9c8490f201b87771bb49d841ab404304301fb9f17d9985a4cf0bd669b846a55
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.4-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL gatekeeper_cdr-0.4.4-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
9136807542fe9540a219ee191e8346838aa91dc1ff1a6b4f2406a659daa34c82
BLAKE2b-256 checksum
How to use checksums
393a9cfb76ae6f15ff23eb0c87943455f982fa3824afad5a1196f10e45e3bafd
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.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gatekeeper_cdr-0.4.4-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
56655456eaf636a9c9dae080eebc34997995c6aa40b6771ad1283c10e6ba46c8
BLAKE2b-256 checksum
How to use checksums
666d67c331e8858c2ecf1b0d23fdd16f2e62e95d411862c2693ca94ae7366510
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.4-cp38-abi3-macosx_11_0_arm64.whl

Download URL gatekeeper_cdr-0.4.4-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
713e53e9d5b42873d2bb3f6ebb2f7969834338e85c7d6b2d8d063564b68bfaf5
BLAKE2b-256 checksum
How to use checksums
2f844f0667e2b7e6aa2c40f6926f20a630a93e813f44094c600b1a391e3f13da
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.4-cp38-abi3-macosx_10_12_x86_64.whl

Download URL gatekeeper_cdr-0.4.4-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
c27fd04243902f3cf38b56c9cc3b8008d96a942260807e31e05bc4779b11b84f
BLAKE2b-256 checksum
How to use checksums
a65d4eb8715943d81140136afa147c0b550ea30b3d77376294c5a0c2cd6a0709
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.4

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