Pricing products using Python graphs and sets
summary
Claims that separating product data from rules and modeling products as a graph-based product model makes pricing fast to change, implements Behavior Driven tests with Python tools (freshen/lettuce style) as pattern tests, and uses the Rete idea to find only relevant rules. Built a model-driven engine that ingests XML, maps to a graph, evaluates rules and returns charges as JSON over HTTP; handles cases like tubs with three scoops or a single ketchup squirt and is deployed successfully for the ice cream client.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:42Ice Cream
- 1:33Spotting patterns
- 2:18Model system
- 2:50Scoop count
- 4:21Business requirements
- 6:52Pricing engines
- 8:25Product tests
- 11:48Max colors test
- 12:24David Grayson
related talks
31mBuilding Data-Driven Client Relationship Management in Banking with Python
28mProductionize Research Oriented Code By Python
01h 51mData Visualization and Exploration with Python
30mIntroducing Labrea: How Embracing Declarative Functional Programming Can Lead You Out of the Tar Pit
32mLessons learned from applying PyData to our marketing organization
54mFrom the Life of a Data Scientist
25mML model from an idea to production with the help...
21mA Python Introduction to Behavior Driven Development
