Python 102: How to Profile Your Code
Code profiling is an attempt to find bottlenecks in your code. Profiling is supposed to find what parts of your code take the longest. Once you know that, then you can look at those pieces of your...
View ArticlePython 101 Book Campaign is Finished!
The Python 101 book campaign finished today. I am now well funded to create the book and get all the artwork done. I think I may try to get additional illustrations too. While we didn’t hit the next...
View ArticleCreating Microsoft Excel Spreadsheets with Python and xlwt
There are a couple of ways to create Microsoft Excel spreadsheets with Python. You can use PyWin32′s win32com.client method, which was discussed in an old article a number of years ago or you could...
View ArticlePython: Creating XML with lxml.objectify
The lxml.objectify sub-package is extremely handy for parsing and creating XML. In this article, we will show how to create XML using the lxml package. We’ll start with some simple XML and then try to...
View ArticlePython 101 – Installing Packages
When you’re first starting out as a Python programmer, you don’t think about how you might need to install an external package or module. But when that need appears, you’ll want to know how to in a...
View ArticlePython 101 Book is Available for Pre-order
I just wanted to drop a quick note that the Python 101 book is now available for Pre-order here. Currently you will receive the draft versions of the book as they become available. Right now, Parts I...
View ArticlePyCon US Discount for Python 101
PyCon US / Canada (North America?) is starting this week and in honor of my favorite conference, I am having a pre-order sale for my book, Python 101. From now through April 17th, you can get $7 off...
View ArticleMiss PyCon 2014? Watch the Replay!
If you’re like me, you missed PyCon North America 2014 this year. It happened last weekend. While the main conference days are over, the code sprints are still running. Anyway, for those of you who...
View ArticleReading Excel Spreadsheets with Python and xlrd
Last month we looked at how to create Microsoft Excel (i.e. *.xls) files using the xlwt package. Today we will be looking at how we can read an *.xls/*.xlsx file using a package called xlrd. The xlrd...
View ArticleeBook Review: Creating Apps in Kivy
Kivy is a neat package that allows Python developers to create user interfaces on mobile devices. You can also deploy the applications to desktops too. This is the second book I’ve seen put out on the...
View ArticleBook Review: Mastering Object-Oriented Python
Packt Publishing asked me to be a technical reviewer for one of their latest Python books, Mastering Object-Oriented Python by Steven Lott. This book is a sequel of sorts to their 2010 release, Python...
View ArticleeBook Contest: Win a Free Copy of Mastering Object-oriented Python
Packt Publishing has partnered with my blog to give away 2 copies of their ebook version of Mastering Object-oriented Python by Steven Lott. You can read my full book review here, but frankly, I...
View ArticlePython 101 Book Writing Update
Python 101, the book I am authoring is nearly finished. I had a couple of “proof” copies produced by Lulu to verify things were laying out correctly and to help me find mistakes. Seeing it in print is...
View ArticlePython 101 Book Published Today!
My first book, Python 101 has been published today. You can buy it directly from my blog which will get you a PDF, EPUB and MOBI version of the book. You can also purchase a softcover edition of the...
View ArticleWorking Around Shadowed Functions
Recently I ran into an issue where an application that calls Python would insert int into Python’s namespace, which overwrites Python’s built-in int function. Since I have to use the tool and I needed...
View ArticlePython: Create Fake Data with Faker
Every once in a while, I run into a situation where I need dummy data to test my code against. If you need to do tests on a new database or table, you will run into the need for dummy data often. I...
View ArticlePyRun – Running Python with a Single File
eGenix announced this week that they were releasing an “open source, one file, no installation version of Python”. You can read their entire announcement in their press release here. If you want to...
View ArticleBook Contest: Win a Copy of Python 101
I have decided to sponsor a contest for my first book, Python 101. I will be giving away 3 copies of my eBook bundle (PDF, EPUB and MOBI) and 1 copy of the paperback, which I will ship anywhere in the...
View ArticlePyDev and Python profiler UI Crowdfunding Project
Last year there was an Indiegogo crowdfunding campaign in support of PyDev, the Python IDE plugin for Eclipse. It was put on by the primary developer of PyDev, Fabio Zadrozny. As a part of that...
View ArticleMy First Interview
Last week, DZone contacted me to ask if I would like to be featured in their “Dev of the Week” series. In other words, they wanted to do a short interview with me. The interview went live yesterday....
View Article