Jinja2 as a Command Line Application
The most common use of Jinja2 is in web applications, where it is used to create HTML files from template files. But I have used it outside web applications too.
A container for all my views with excerpts from technology, travel, films, books, kannada, friends and other interests. I am Thejesh GN, friends call me Thej.
So It’s in my nature to convert everything to a web-service. The biggest reason is that you can call a web service from anywhere, and it’s easy to share the processing power and logic with anyone who has access to a web browser or curl and nothing else.
As you would know, I scrape a lot of web pages as a Data Archivist at DataMeet. I usually use BS4 for this, and it’s beautiful, simple, and works. But often don’t want to write a python script to do that, and I need a simple tool to get data out of HTML.
Webhooks are part and parcel of today’s web applications. It’s the primary way to get informed about the events happening on an external system, whether it’s payment or communication. So any developer needs to know and use webhooks today. Here are some of the tools that I use daily to test and integrate webhooks (Also async APIs). I hope they are helpful to you too.
I like drawings to explain stuff. It’s probably the most straightforward way to document things. But the pain of traditional drawings is the inability to track changes to them. It’s easy to track changes to text or code by tracking them in a git. It’s not easy when it’s a binary blob which is what most images are. SVG format helps a lot. I use it as much as possible, but it’s still very verbose, and I think not easy to see the diff and understand what happened over time.
A browser is q sandboxed area where you can access, view, and manipulate the data. Somehow the ability to manipulate the data (website) locally; to suit users’ needs doesn’t get noticed much. This feature is a potent tool in the hands of capable users. The following addons will add to that users’ power.
There are many ways to subscribe to this blog. Email is probably the best.
Thejesh GN (ತೇಜೇಶ್ ಜಿ.ಎನ್) "Thej" is an Independent Technologist, Hacker, Maker, Traveler, Blogger, InfoActivist, Open data and Open internet enthusiast from Bangalore, India. He loves experimenting with all things life and hence some times he is called hacker and other times duct tape. You can read more about him here. Email [ i @ thejeshgn dot com]. PGP/GPG Keys are here.
Fediverse or Mastodon: @[email protected]
(C) Thejesh GN.The views expressed on this site are mine (Thejesh GN) alone and do not necessarily reflect the views of my employer. Please read the terms and conditions before reading or commenting on this blog.