Programming related articles.
Curl is a linux utility that is used to make HTTP requests to a given url. It outputs HTTP response to standard output and is actually very easy to use. Here are some examples to show its usage...
If you need to pretty print the json output of a terminal command (so you can inspect it more easily), you can use python's json module. I usually use it to pretty print the output of curl command. Here is an example
:::bash curl http://somesite.com/my/json/ | python -m json.tool
This utility can also be used to pretty print json files like following
:::bash python -m json.tool minified.json > prettyprint.json
This blog post will be split into two part. After I finish part two, I will add a link at the bottom of this one. For both parts I will use a sample project with sqlite3 database. models.py file for sample application is here...