Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.