Latest Articles

Snake_Byte #18: namedtuples with defaults

I would estimate namedtuple to be the most commonly used container type in Python's supplemental collections module, and it doesn't take long for new Python...

Snake_Byte #17: raise Hell()

The raise statement is an often used, but rarely understood feature of Python. Case in point: the official Python tutorial reads, "The sole argument to...

Snake_Byte #16: REST-assured with SOAP and Python

It's easy to use Python and REST with SOAP, without having to cleanout the tools cupboard. Once you have the WSDL and/or a sample request,...

Snake_Byte #15: Processing the CMS NPPES-NPI dataset with python csv and json

Today, we're going to look at the python csv module and the CMS NPI dataset. If you'd like to follow/code along using python/ipython browse to...

Snake_Byte #14: Writing Made Easy

Python, as a language, has its strengths and weaknesses as any other language does. Some of its biggest strengths are its productivity and speed of...

Snake_Byte #13: Metaclasses: But Why?

Python is one of a handful of languages that allow the use of Metaclasses. Usage of the feature is fairly controversial, as you can solve...

Snake_Byte #12: t-SNE?...Gesundheit

I can see clearly now the dimensionality is gone… Often, when investigating a new dataset, it is helpful to create visualizations of the data to...

Snake_Byte #11: ? faster with PyPy

Earlier this year, I spoke at PyCon about running our Python code with PyPy and how it has sped up our healthcare transaction processing. After...

Snake_Byte #10: Astute Assertions

Welcome to the 10th installment of Snake_Bytes! In this installment we will implement test cases using Nose and Rednose.   Test cases are an important...

Snake_Byte #9: Exceptional Exceptions in Flask

You wake up, and realize that you are 10 minutes late for an interview with a potential employer at the new coffee shop 4 blocks...

Snake_Byte #8: Genetic Programming

As computer programmers, we often write code to do a task and then almost immediately begin to wonder, “Can this be done more efficiently, what...