Welcome to issue 47 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor
News
The goal of this project is to build an open-source, 18ft wide, 4,000 pound, 6-legged hydraulic robot that you can ride. It uses python extensively. They will be posting the source code on github soon.
Articles, Tutorials and Talks
A lot of programmers use print statements for debugging, but you can also use logging to do this. It's actually cleaner to use logging as you won't have to go through all your code to remove the print statements. By the end of this tutorial, you should be able to confidently create your own logs for your applications.
Writing your own C extensions to Python can seem like a pretty daunting task when you first get started. After going through this tutorial, you should be able to write your own C-extension module.
Having too many custom exceptions on a project can be a pain, but a few choices ones are really nice. The problem is that in complex libraries having to import both functions and exceptions becomes a drag. To mitigate having to remember to import custom exceptions, this is a handy pattern you can use in a project and can be done on both functions and classes.
Armin Ronacher shares his thoughts on why Flask/Django or other frameworks are perfectly ready for the realtime world.
Continuing on in the series on gevent and Python, this article discusses how to build TCP servers using the infrastructure provided with gevent.
This article's main goal is to define a common language to reason about plugins. The four concepts should provide one with a tool to examine and study the plugin infrastructure of a given application: 1) how are plugins discovered, 2) how do they register themselves with the application, 3) which hooks can plugins utilize to extend the application and 4) what API does the application expose to plugins.
A good discussion on reddit.
This posts shows you how to build a Twitter client for Excel using Python, tweepy and DataNitro. It updates Excel worksheets with tweets as they are posted, lets you tweet from a worksheet as well as search and browse other user's profile.
Continuing on in the series on gevent and Python, this article discusses how to use gevent to power your Python WSGI web applications.
Interesting Projects, Tools and Libraries
Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. These can be both visual novels and life simulation games. The easy to learn script language allows you to efficiently write large visual novels, while its Python scripting is enough for complex simulation games.
Dropbox / Google Drive powered blogging engine. You can also read a blog post about it to get more details.
Django Fiber is a simple, user-friendly CMS for all your Django projects.
A Skype bot that sits in a chat, runs python code and replies with the result.
An interpreter for music syntax written entirely in Python with a cool demo.
A Python shell for Chrome. You can use Python Shell to test Python code, to test regular expressions or as a calculator.
django-lazysignup is a package designed to allow users to interact with a site as if they were authenticated users, but without signing up. At any time, they can convert their temporary user account to a real user account.
New Releases
The first release candidate of Jython 2.5.3 is available. Jython 2.5.3 fixes numerous bugs.
Upcoming Events and Webinars
Join us for a night of lightning talks and short presentations, pizza and Python!
Books
Learn how to build your own computer vision (CV) applications quickly and easily with SimpleCV, an open source framework written in Python. Through examples of real-world applications, this hands-on guide introduces you to basic CV techniques for collecting, processing, and analyzing streaming digital images. You'll then learn how to apply these methods with SimpleCV, using sample Python code
|