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.1.tar.gz (35.8 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.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aegis_preflight_core-0.1.1.tar.gz
  • Upload date:
  • Size: 35.8 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.1.tar.gz
Algorithm Hash digest
SHA256 a6aedfb23917945a70a28b94a9c2fd68de252ded26b0d947ea1c96f246dda73d
MD5 d9f036abea10d7aaa8d55eaf89c2505e
BLAKE2b-256 4c9f84d8792706d81fdd466d7eaf98b9d5880a6781aab78bac92be9320b99b1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aegis_preflight_core-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fc4238865ef41ea84e5399c825bd6eee8d9632fbe72ca4b692005191d5b110
MD5 a46870ff38274543bab35fc9fa20a643
BLAKE2b-256 2cd282794fbe775b0bcc016f24cc0c4e11317c24b8e53f65f3cbc17ec27a15c8

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