Metadata-Version: 2.4
Name: ap3-functions
Version: 1.0.0
Summary: AP3 cryptographic operation implementations
License: Apache-2.0
Requires-Python: <3.14,>=3.11
Requires-Dist: ap3>=1.0.0
Description-Content-Type: text/markdown

# ap3-functions

Protocol implementations for the [AP3](https://pypi.org/project/ap3/) (Agent Privacy-Preserving Protocol) SDK.

`ap3-functions` ships the cryptographic operation implementations (currently PSI — Private Set Intersection) that the core `ap3` SDK composes into end-to-end privacy-preserving agent workflows.

## Installation

```bash
pip install ap3-functions
```

This pulls in `ap3` automatically.

## Usage

```python
from ap3_functions import PSIOperation

psi = PSIOperation()
result = psi.start(role="initiator", inputs={"customer_data": "..."})
```

> Distribution name is `ap3-functions` (hyphenated), import name is `ap3_functions` (underscored). This is standard Python packaging convention — the same way `pip install scikit-learn` gives you `import sklearn`-style decoupling.

See the [AP3 SDK docs](https://github.com/silence-laboratories/ap3) for the full API and end-to-end examples.

## Platform support

PSI calls a native library (`libsanction_check_lib`) bundled in `ap3_functions/psi/binaries/`. Prebuilt binaries are included for:

- macOS (`.dylib`)
- Linux (`.so`)

## License

Apache-2.0
