Skip to main content

Core detection and masking library for Aegis PII protection

Project description

aegis-core

Core detection and masking library for Aegis PII protection.

This package provides the shared detection and masking functionality used by both the Aegis API and SDK.

Installation

pip install aegis-core

Usage

from aegis_core import detect, mask_text

# Detect sensitive data
items = detect("Contact john@example.com at 555-123-4567")
for item in items:
    print(f"{item.type}: {item.count}")
# EMAIL: 1
# PHONE: 1

# Mask sensitive data
masked = mask_text("Contact john@example.com at 555-123-4567")
print(masked)
# Contact j***@example.com at XXX-XXX-4567

Detection Types

  • EMAIL - Email addresses
  • PHONE - Phone numbers
  • CREDIT_CARD - Credit card numbers (Luhn validated)
  • SSN - Social Security Numbers
  • API_SECRET - API keys and secrets
  • IBAN - International Bank Account Numbers
  • PHI_KEYWORD - Protected Health Information keywords

License

Proprietary - Aegis Preflight

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aegis_preflight_core-0.1.2.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aegis_preflight_core-0.1.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file aegis_preflight_core-0.1.2.tar.gz.

File metadata

  • Download URL: aegis_preflight_core-0.1.2.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aegis_preflight_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 39025602321058680ae63189df3f827246af13f0961c55b01b8d179dc11f086e
MD5 e64ee8cd04c8ba419dbd97e9e13ef15b
BLAKE2b-256 87fc065f1411696590e8756966124a1fb4e19826afb6de0e4b03a3b13e9ee139

See more details on using hashes here.

File details

Details for the file aegis_preflight_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aegis_preflight_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aegis_preflight_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b4c36da3e5f4f838b1e921006dcf0473fcf97b59c6ea99049d7bbd123f3d91c
MD5 1536a73b03cb0ca89d620851e9829171
BLAKE2b-256 d8a814a291b54671e0eb83ffd24cba8799a7db44c07d5fe683ca6297a940a2cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page