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 addressesPHONE- Phone numbersCREDIT_CARD- Credit card numbers (Luhn validated)SSN- Social Security NumbersAPI_SECRET- API keys and secretsIBAN- International Bank Account NumbersPHI_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aegis_preflight_core-0.1.0.tar.gz.
File metadata
- Download URL: aegis_preflight_core-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1906db8a3800aac93b3cc35d5a2823fa73262dea03ffa374262d3dfd5e60da9a
|
|
| MD5 |
be73337dd3e3a853c09139c708e41174
|
|
| BLAKE2b-256 |
b36e59bdc1771cb6250cc4c2760ddd5c3a8f852e4585d3168c08a19590c47f08
|
File details
Details for the file aegis_preflight_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aegis_preflight_core-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d158e924fd26301507b8f328af6fbb5fb06ca4afce3834d86f680d0dc7b80b6
|
|
| MD5 |
3193fa0956393b8fccf06d96ef17ccdd
|
|
| BLAKE2b-256 |
1e6bb543f04c50d32f3e0ebaf1bd6370e561632b8ea4f90c6b5815b7f863eb53
|