Python Tools: Pyflame

Pyflame is new a tool brought to us by Uber’s engineering team (you can read about the conception of the idea here) that many Python coders will find very useful. The tool is used to generate flame graphs for Python processes.   Pyflame works by using the ptrace(2) system call to analyze the currently-executing stack trace […]

Read More

Using YAPF (Yet Another Python Formatter)

Yet Another Python Formatter (YAPF) is a valuable tool for writing Python. YAPF is an open-source Python Formatter that makes writing clean Python code a lot easier, so you can spend more time writing code and less time worrying about how it looks. One of the great advantages of using this formatter (besides the pretty […]

Read More

Python’s Django vs Ruby on Rails

Python vs Ruby Ruby is a dynamic, reflective, object-oriented general-purpose programming language which was designed and developed in the mid-1990s. Compared to Python, which treats code readability above everything else, the philosophy behind Ruby is that programmers should have the flexibility, freedom and power to write concise and compact code. The most important difference between […]

Read More

PyInstaller: Package Python Applications (Windows, Mac and Linux)

PyInstaller is a program used to convert Python scripts into standalone applications. PyInstaller allows you to run applications written in Python on a computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end user as a standalone application. PyInstaller currently only works […]

Read More

py2exe: Python to exe Introduction

py2exe is a simple way to convert Python scripts into Windows .exe applications. It is an utility based in Distutils that allows you to run applications written in Python on a Windows computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end […]

Read More

Introduction to SQLite in Python

SQLite3 is a very easy to use database engine. It is self-contained, serverless, zero-configuration and transactional. It is very fast and lightweight, and the entire database is stored in a single disk file. It is used in a lot of applications as internal data storage. The Python Standard Library includes a module called “sqlite3” intended […]

Read More

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

Review of IPython (Alternative Python Shell)

For an introduction to IPython, be sure to checkout the article Introduction to IPython: An Enhanced Python Interpreter. One of the nice things about working in an interpreted language like Python is exploratory programming using the interactive Python shell. It lets you try things out quickly and easily without writing a script and then executing […]

Read More

Review of bpython and DreamPie (Alternative Python Shells)

bpython Alternative Shell Review bpython is a lighter solution than IPython, which we discussed last time; where IPython expands the capabilities of Python itself, and offers interactive features as a sideline, bpython expands the interactive features of Python’s shell — and that’s about it. Within the bounds of its intended purpose, however, it is quite […]

Read More

Text Editors vs IDEs for Python development: Selecting the Right Tool

The language in which you program and its interpreters or compilers are only some of the tools you use to develop software. Another important matter is your programming environment. Unlike some languages, where your choices are limited, such as Delphi or the .NET languages, where there are one or two obviously superior options, Python has […]

Read More