Metadata-Version: 2.4
Name: aegis-preflight-core
Version: 0.1.1
Summary: Core detection and masking library for Aegis PII protection
Project-URL: Homepage, https://www.aegispreflight.com/
Project-URL: Documentation, https://docs.aegispreflight.com
Author-email: Aegis Preflight Team <support@aegispreflight.com>
License: Proprietary
Keywords: detection,gdpr,hipaa,masking,pii,privacy
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Requires-Python: >=3.9
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# 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

```bash
pip install aegis-core
```

## Usage

```python
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
