Delivered once every Week. No Spam Ever.

Issue - 29

Worthy Read

Welcome, fellow Pythoneer! This is a small book of Python anti-patterns and worst practices. Learning about these anti-patterns will help you to avoid them in your own code and make you a better programmer (hopefully). Each pattern comes with a small description, examples and possible solutions.
core python

Join Michael for a conversation with Chris McDonough about the Pyramid web framework. You'll learn about what Pyramid is and how it compares to frameworks like Django, Flask, Bottle, and more.

If you missed it, it seems right now there's a long thread going on related to the type-hinting PEP. The main thing going for the proposal is getting errors earlier by doing type-checking.

NBA real time scores already have an API but I thought I would make one using Kimono’s really easy scraping chrome extension anyway. (Note: I don’t work for them, they just have a cool product). First we have to grab the values we think are important on the ESPN NBA home page. That would be the home team name, away team name, scores, and the score time. Full github code is here.
web scraping

A little over a year ago we started archiving all of the logs generated by PyPI and today we’ll take a look at these logs to see how various things have changed in that time. This data comes from parsing the user agents of the tools downloading files from PyPI and because of that it’s reliability is dependent on the reliability of that data.

Pytest is an awesome testing package for Python. It makes writing test really easy and its reporting capabilities for test failures are extremely helpful.However, it currently (as of version 2.7) doesn’t help you very much with testing (asyncio) coroutines. So a naïve approach for testing coroutines would be ...

submitted by hongminhee [link] [comment]
new release

Here, I’ll demonstrate how to create these animated visualizations using Python and matplotlib. All of my source code is available in this IPython notebook. By the end, we’ll produce animated data visualizations.

Interview with Noah Gift.

New Books

In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand. Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation. Even if you've never written a line of code, you can make your computer do the grunt work. ImportPython has an interview with the author - Albert Sweigart on our weblog. Feel free to ask questions to the author in the comments section.


credstash - 168 Stars, 10 Fork
A little utility for managing credentials in the cloud.

villoc - 122 Stars, 10 Fork
Visualization of heap operations.

ezcf - 68 Stars, 4 Fork
Import configuration file for humans. ezcf stands for easy configuration, it allows you to import JSON/YAML/INI/XML like .py files. It is useful whenever you need to read from these formats, especially for reading configuration files.

hooks - 32 Stars, 0 Fork
Receives Github hooks and runs commands when they get there

import-order - 32 Stars, 2 Fork
Sort imports in lexicographical order

segment - 23 Stars, 3 Fork
A tool to segment text based on frequencies and the Viterbi algorithm "#TheBoyWhoDied" => ['#', 'The', 'Boy', 'Who', 'Died']

is-dirty - 19 Stars, 3 Fork
A naive classifier to figure out if a sentence contains dirty words

python-email-validator - 12 Stars, 0 Fork
A robust email syntax and deliverability validation library for Python 3.x.