{"id":4990,"date":"2019-10-08T00:01:01","date_gmt":"2019-10-07T16:01:01","guid":{"rendered":"https:\/\/www.alfredivy.per.sg\/blogger\/?p=4990"},"modified":"2025-07-11T15:43:15","modified_gmt":"2025-07-11T07:43:15","slug":"starting-on-python","status":"publish","type":"post","link":"https:\/\/www.alfredivy.sg\/blogger\/2019\/10\/starting-on-python\/","title":{"rendered":"Starting on Python"},"content":{"rendered":"\n<p>I am starting on Python programming. This was after two incidents that required me to mass translate some Cisco config files.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Due to some weird circumstances, I needed to extract the Cisco&#8217;s show inventory into an Excel format.  The tool or the code that I have encountered requires Python.  The first time I tried this, I could not get it to even run.  A few months later, I encountered a similar problem and ended up with Python again.  This time around, I managed to get the environment around, but I could not install the required xlwt module.   I used another tool to complete the task.<\/p>\n\n\n\n<p>So I thought, hmm the lightning actually strikes twice. Maybe it is time to dive deeper. With more time, a library book and the Internet, I got hello world working but still no joy on the code running. I fixed a bug, concatenation from bytes to string. It is still throwing weird errors about writing to the wrong file type.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am starting on Python programming. This was after two incidents that required me to mass translate some Cisco config files.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,530],"tags":[531],"class_list":["post-4990","post","type-post","status-publish","format-standard","hentry","category-it","category-programming","tag-python"],"_links":{"self":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/comments?post=4990"}],"version-history":[{"count":4,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4990\/revisions"}],"predecessor-version":[{"id":6460,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/4990\/revisions\/6460"}],"wp:attachment":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/media?parent=4990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/categories?post=4990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/tags?post=4990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}