Skip to content

Conversation

@iabmayank
Copy link
Collaborator

No description provided.

This commit adds a comprehensive REST API and web interface on top of
the existing Jupyter notebook-based Privacy Lab workflows, enabling
easy integration with external applications.

Changes:
- Created FastAPI REST API backend with endpoints for all three PET workflows
  (k-anonymity, differential privacy, homomorphic encryption)
- Extracted Python logic from Jupyter notebook into reusable modules
- Built HTML/JS web interface with interactive forms and visualizations
- Added comprehensive API documentation and usage examples
- Created startup scripts for easy deployment
- All endpoints tested and working with sample data

The API enables data to be sent via REST and receive privacy-enhanced
results back, making the PET workflows accessible to any HTTP client.

API Documentation: README_API.md
Endpoints: /api/k-anonymity, /api/differential-privacy, /api/homomorphic-encryption

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds complete documentation and tooling for using custom data
with the Privacy Lab API instead of just sample data.

Key Changes:
- Updated workflows to dynamically extract campaigns from user data
  (instead of hardcoded campaign lists)
- Added DATA_TEMPLATES.md with complete payload specifications
- Added CUSTOM_DATA_GUIDE.md with step-by-step usage instructions
- Created examples/ directory with:
  * 4 ready-to-use JSON payload examples
  * CSV templates for events and conversions
  * csv_to_json.py converter tool for CSV to JSON conversion
  * Comprehensive examples README

Features:
- API now processes ANY campaign names from submitted data
- CSV to JSON converter with parameter support
- Minimal, full, and endpoint-specific example payloads
- Complete field specifications and validation rules
- Python integration examples
- Troubleshooting guides

All endpoints tested and working with custom data:
- k-anonymity: Dynamic campaign processing
- Differential Privacy: Returns results for user's actual campaigns
- Homomorphic Encryption: Computes on user's campaign data

Users can now submit their production data directly to the API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants