Optional Course Tool
Configurable Transaction Generator
Choose dataset size and the exact fraud mix, then download a Python configuration file. No server, login, or uploaded data is required.
1. Dataset Size
2. Fraud Mix
3. Validated Output
Normal19,000
Fraud1,000
Total20,000
Impossible travel300
Unusual amount300
Rapid fire400
Configuration is valid.
Download base generator
How to Run
- Download both files into the same folder.
- Run the downloaded configuration:
python generate_transactions_config.py. - The generator creates
transactions_custom.csv. - Repeated runs continue transaction IDs using a local sequence file, so database primary keys do not collide.
What Simple HTML Can and Cannot Do
Possible without a backend
- Collect counts and percentages
- Validate totals instantly in JavaScript
- Calculate exact fraud-type counts
- Generate and download a Python configuration file
- Remember form choices using browser storage
Not possible directly
- Run Python on the student's computer
- Write directly into MySQL or Kafka
- Read arbitrary local files without user selection
- Maintain one global transaction sequence across devices
- Generate very large files reliably on low-memory browsers
Why two files? The HTML safely handles configuration and validation. The reusable Python generator performs the actual data creation efficiently, including 20,000+ rows and collision-safe ID continuation.