Fosstodon Mastodon

Articles tagged under Python




A crash course in python packaging

This guide isn't for the newbie who is just learning python programming (they are better off doing a "proper" reading of the official docs instead). This is for the seasoned coder who dabbles in multiple technologies and needs a quick refresher on how to go about building a neat zip … Read More

Why you should never use the dict.get() method in python

There is an increasing trend towards using the dict.get() method in Python, it's very widely used in many tutorials and examples too. Consider the below example for instance: >>> dd = {'a': 1} >>> dd.get('a') 1 This simple dictionary dd has only one key ('a') and its corresponding value is … Read More

Wordpress to Pelican in 24 hours

Today, I finished migration of my blog from a self-hosted Wordpress site to a statically hosted Github Pages site. For the static site generator, instead of choosing Jekyll which is a hot favorite of rubyists, I went for Pelican instead as I figured my Python skills might be somewhat useful … Read More





How to host a Flask app on Openshift

Note: This article may no longer be relevant as Red Hat has recently changed the openshift stack with docker and kubernetes. Openshift free tier is an excellent way to host your python web app for staging or testing, and you can even host a low to medium traffic production site … Read More

Page 1 / 2 »