# ProofMode Python Integration Example
This directory contains examples of how to integrate the ProofMode library into your Python application.
## Prerequisites
First, install the ProofMode library:
```bash
pip install proofmode
```
Or install from GitLab Package Registry:
```bash
pip install --index-url https://gitlab.com/api/v4/projects/PROJECT_ID/packages/pypi/simple proofmode
```
## Examples
- `example.py` - Basic usage example showing proof generation and verification
## Running the Examples
```bash
# Make sure you have the ProofMode package installed
pip install proofmode
# Run the example
python example.py
```
## Integration Tips
1. Import the proofmode module directly: `import proofmode`
2. All paths should be strings or Path objects
3. The library handles native calls through UniFFI bindings
4. Error handling uses standard Python exceptions
## API Overview
```python
# Generate a proof
result = proofmode.generate(
file_path="path/to/file",
passphrase="your-passphrase",
device_info={...},
location_info={...}
)
# Verify a file
verification = proofmode.check(file_path="path/to/file")
```
## For More Information
See the [ProofMode Python package documentation](../../cli/python/README.md) for full API reference.