Python for Android: The Scripting Layer (SL4A)

The Scripting Layer for Android, SL4A, is an open source application that allows programs written in a range of interpreted languages to run on Android. It also provides a high level API that allows these programs to interact with the Android device, making it easy to do stuff like accessing sensor data, sending an SMS, […]

Read More

Recursive File and Directory Manipulation in Python (Part 1)

If you are looking to utilize Python to manipulate your directory tree or files on your system, there are many tools to help, including Python’s standard os module. The following is a simple/basic recipe to assist with finding certain files on your system by file extension. If you have had the experience of “losing” a […]

Read More

Python Generators and the Yield Keyword

At a glance, the yield statement is used to define generators, replacing the return of a function to provide a result to its caller without destroying local variables. Unlike a function, where on each call it starts with new set of variables, a generator will resume the execution where it was left off. About Python […]

Read More

PySide/PyQt Tutorial: Interactive Widgets and Layout Containers

In the last installment, we looked at some of the functionality provided to all QWidget-descended Qt widgets, and we looked at one specific widget, the QLabel, in more depth. We also worked our way up to an example that illustrated the structure of a simple Python/Qt application. Thus far, however, we’re not able to do […]

Read More

Introduction to Tweepy, Twitter for Python

Python is great language for all sorts of things. Very active developer community creates many libraries which extend the language and make it easier to use various services. One of those libraries is tweepy. Tweepy is open-sourced, hosted on GitHub and enables Python to communicate with Twitter platform and use its API. For an introduction […]

Read More

Install PySide and PyQt on Windows, Mac and Linux

In the last article, I introduced you to Qt and its Python interfaces, PyQt and PySide; now that you know a bit about them, pick one and install it. I recommend PySide for two reasons: first, this tutorial is conceived in terms of PySide, and may cover a few topics that are less fully-implemented in […]

Read More

Overview of Python GUI development (Hello World)

Python is well suited for rapid development of cross-platform applications of all sorts, and that includes desktop GUI apps. There are choices to be made when starting to develop a GUI application in Python, however, and this article provides the information you need to set out on the right path. We will discuss what serious […]

Read More

PySlices with Tkinter

Among the numerous libraries and software suites Python developers have created with and for Python is the Py Suite, a group of tools written in wxPython to assist Python enthusiasts with their programming endeavors. Included in this suite is a Python shell worthy of mention called PySlices. Perhaps this shell’s most distinguishing feature is the capability […]

Read More

How to Use the Twython (Twitter) Python library

Python is a very versatile language with a very diverse library ecosystem. That’s why their motto is “batteries included” – and boy are they right! Using Python, you can connect and interact with a wide array of social networks including Facebook, Twitter and LinkedIn. Today, I want to show you how to perform some basic […]

Read More

Introduction to Python on AWS with Boto

Amazon Web Services offer us all cheap, ready access to serious cloud computing infrastructure. So how do we run Python on it? Setting up Python on Amazon EC2 EC2 is Amazon’s Elastic Compute Cloud. It’s the service used to create and operate virtual machines on AWS. You can interact with these machines using SSH, but […]

Read More