Lightweight Web Services with Pyramid
summary
Shows how to turn an existing Pyramid web app into a mobile-friendly API without rewriting: return Python dicts and plug in a JSON renderer so HTML views also serve JSON, reuse the same view for two routes by decorating the view twice, and handle RESTful collections with Cornice paired with Colander schemas to validate input and auto-generate docs. Reports converting enterprise XSD to Relax NG to validate XML payloads in days, and mentions ongoing work porting the ZODB BTree C code to Python 3.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 0:43About AGendalist Consulting
- 1:49Turning web apps into mobile APIs
- 2:35Pyramid's view and response basics
- 3:57Returning data instead of responses
- 4:40JSON for mobile and JS apps
- 6:28Dual route JSON and HTML views
- 7:51Simple JSON web services
- 8:58RESTful APIs with Cornice
- 10:25Cornice resource decorator
- 11:49Schema validation in Cornice
- 12:57Sprints and their purpose
- 13:38What happens at a Sprint
- 15:21Benefits of sprinting
- 16:02Pyramid's Python 3 porting goal
