I didn't get into this in the blog post, but we use io-ts at Pilot, and we generate most of the codecs based on the type annotations on the Python side. It works reasonably well, although I think the io-ts syntax confuses people who are new to TypeScript.
HN user
akaptur
267 karma
Posts4
Comments5
TypeScript for Pythonistas 5 years ago
TypeScript for Pythonistas 5 years ago
You might be interested in the PEP introducing structural subtyping to Python: https://www.python.org/dev/peps/pep-0544/ - there, they use "structural subtyping" and "static duck typing" as synonymous.
HS facilitator here - If you email me (allison at hackerschool), we can give you feedback.
Becoming a better Programmer: From Nairobi to NYC 13 years ago
Hacker School employee here. I can confirm that she's been admitted.
There's no magic: virtualenv edition 13 years ago
Glad you liked it, but that's actually my fork of the original, which was by another Hacker Schooler: https://github.com/bev-a-tron/MyFlaskTutorial
I really liked the way she distinguished arbitrary variable names from mandatory class names etc. So often, tutorials don't make that clear.