Get Your Weekly Dose of Python
Welcome to issue 60 of Python Weekly. I would like to thanks our sponsor this week, Betable. They provide a great solution for monetizing your games. Be sure to check their offering.


From Our Sponsor

Gamblify Your Game Game developers, legally add real-money gambling and betting to your game with Betable's real-money API.
(Sponsor this newsletter)



Articles, Tutorials and Talks

This post gives you an introductory view of some techniques that could be useful when you want to perform a basic analysis of opinions written in english.
 
In this tutorial we will create a complete example of how to consume the public stream and getting all tweets that mentions the products iphone, ipad or ipod. We will connect to the stream using OAuth and deal with common errors and warnings.
 
GIS with Python, Shapely, and Fiona
Shapely and Fiona are essential Python tools for geospatial programming. Recently Brian Timoney and James Fee have been writing about how geospatial work is more and more programming and less GUI-driven operations in the ArcGIS mold. They've been pointing a lot to Python for this. To make this a bit more concrete, here are some quick recipes of how to do things with Shapely that may be useful.
 
django.utils.datastructures is an internal API and has not been documented due to lack of time. This file is not governed by django's lenient backwards-compatible policy. With the note out of the way, let's look at the interesting datastructures in this file. You may ask why we should learn about those when we shouldn't be using them? Reading code is the best way of learning and this file has some beautiful code.
 
Py2neo has become a popular library for Python developers to drive Neo4j's REST API. In this presentation, Nigel Small describes how Py2neo evolved, provide an introduction to how it is used. Nigel also explores Geoff, a textual format for storing and transmitting graph data (with a syntax heavily influenced by Neo4j's Cypher language) and how it powers the Neo4j REPL.

This post looks at how Vim users can boost their productivity by having Vim tell you as much as possible about your program, while you're writing it.
Selenium's been around for a long time now, and is available in various programming languages, but up until Django 1.4 came along you couldn't have your Selenium tests (easily) integrated with your Django test suite. Since then, a new class named LiveServerTestCase, that your Selenium test classes can inherit from, was introduced. This class will automatically run a test server in the background and your Selenium tests will be run against that server. 
 
This tutorial will help you to setup django server on linux with apache and mod_wsgi
 
This post shows you how to implement Django's Form Wizard in your own product. 

 
 
Interesting Projects, Tools and Libraries

AstroML is a Python module for machine learning and data mining built on numpy, scipy, scikit-learn, and matplotlib, and distributed under the 3-clause BSD license. It contains a growing library of statistical and machine learning routines for analyzing astronomical data in python, loaders for several open astronomical datasets, and a large suite of examples of analyzing and visualizing astronomical datasets.
 
PySQLi is a python framework designed to exploit complex SQL injection vulnerabilities. It provides dedicated bricks that can be used to build advanced exploits or easily extended/improved to fit the case.
 
Course Builder packages the software and technology we used to build our Power Searching with Google online course. You can use it to create your own online courses, whether they're for 10 students or 100,000 students. You might want to create anything from an entire high school or university offering to a short how-to course on your favorite topic.
 
A fast non-blocking JSON based RPC library for Python.
 
HNotify is a little Python script which notifies you when the Hacker News community is active and so when the time is good to send a story on Hacker News. 
 

New Releases

There are a number of exciting improvement in this release compared to 1.1, all based on your feedback & suggestions. 


Books

Create innovative programs and fun games on your tiny yet powerful Raspberry Pi. In this book, electronics guru Simon Monk explains the basics of Raspberry Pi application development, while providing hands-on examples and ready-to-use scripts. See how to set up hardware and software, write and debug applications, create user-friendly interfaces, and control external electronics. Do-it-yourself projects include a hangman game, an LED clock, and a software-controlled roving robot.
 

Upcoming Events and Webinars

This talk tries to move the pendulum back to the center by showing you how one not-terribly-smart guy sped up a critical Python program 114,000 times and you can too. The resulting system handles predicted data volumes for several years out, avoiding the need to run on a cluster and the resulting additional failure modes. It is maintainable, extensible, and reliable, running for more than a year with no unscheduled downtime.
 
There will be following talks
  • Sensor Data in the Cloud 
  • Testing RF Products with Python 
  • Lightning Talks
The presentation will walk you through the popular commercial PaaS offerings such as Heroku and Dotcloud as well as open source offerings such as Redhat's OpenShift and VMWare's CloudFoundry. It will also give a sneak preview of Appsembler, a cloud application platform built on Stackato.
 
Raymond Yee will discuss best practices (with examples) for Django/Python testing. Then you will work on your project, give and get help over the shoulders of others for anything related to Django, including Python, CSS/HTML/JavaScript, Django apps, etc.
 
Project night is an informal gathering of Python developers interested in working together in small groups.
 
 


Get Your Weekly Dose of Python