One way to use a Python variable in an external Javascript is to declare the JS variable in the HTML template through context object, then pass this variable to the external script code : (more…)
Read more »
This Python eats Exceptions Python like any other modern language has exception management. But I ran into an interesting edge case that stumped me quite a bit before I realized well python is different.
Let me explain with an example.
1 2 3 4 5 6 7 8 9 1... (more…)
Read more »
Want to leverage YOLO object detection for safety?One great implementation is using it to determine when drivers might be feeling a little drowsy. In this vi... (more…)
Read more »
This is the fourth article in a series about writing my own SQL query builder. Today, we'll rewrite it from scratch, explore API design, learn when to be lazy, and look at worse and better ways of doing things – all in 150 lines of Python! (more…)
Read more »
As the Python Packaging Project Manager, my work has mostly concentrated on improving user experience on PyPI . As the Python Packaging ecos... (more…)
Read more »