Programming, Python

Autogenerate explicit __init__.py files with mkinit

Today I want to talk a little bit about how to setup a Python package. Hopefully you are familiar with this already, but if not, let me give a quick overview. When building anything in Python that requires more than one file, you should always put it into a package with a directory structure following… Continue reading Autogenerate explicit __init__.py files with mkinit

Programming, Python

Extending Python Doctests – xdoctest

If you're like me and you've ever wanted to (1) write tests without opening a new file, (2)  give your functions interactive entry points, (3) provide example usage for API calls,  or (4) simply thought "hmm, that's neat" when you saw how vim highlights text in docstrings prefixed with ">>>", then you may be interested… Continue reading Extending Python Doctests – xdoctest