Comment

Comment by StavrosK

Hands down, my favorite new library is schema:

https://pypi.python.org/pypi/schema

Here's a schema I use in production, see how readable it makes the parameters of the API and how quick all the validation and normalization is:

https://www.pastery.net/mhwwnv/

At the end, you get an object called data, and you can do data.title, data.language, etc, and be sure that everything is as you expect.

parent StavrosK 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton