The Python Papers Anthology
Not a member yet
207 research outputs found
Sort by
Interfacing with GIMP using Python
The GNU Image Manipulation Program (GIMP) is used primarily as a tool for photo manipulation. It provides a very well documented API for developers and the support to enrich the core functionality with plug-ins. One of the primary language bindings to write plug-ins is Python
Getting Started with Zope3
The Z Object Publishing Framework (Zope) was the first application server written in Python, which made it possible to manage and publish objects through the web. Since 1998, the Zope framework has evolved, becoming more sophisticated and complex, but also less scalable. Developers found that the more complex an application became the less portable and manageable the code base was due to the multiple inheritance. New development paradigms were used to create a component architecture which tried to split up responsibilities. The component architecture allows the creation of reusable components which can be tested and distributed independently; functioning more like a toolbox
Easy Mobile Augmented Reality using Python
Advances in mobile technology, including the constant increase in the processing power of mobile devices and in connectivity have turned mobile devices into a powerful platform for Augmented Reality (AR) applications. Thanks to this evolution, different technologies, such as AR, Global Positioning Systems (GPS), 3G connectivity and Bluetooth can now be used on mobile devices to capture, present and share AR data. Despite the infinite advantages of using these features, the development of AR applications has become an increasingly complicated task. The use of scripting and interpreted languages, such as Python, simplifies this task, making it easier to prototype advanced AR applications. This paper presents how developing a Python wrapper for common performance-critical software modules in Symbian C++ can increase the speed of development of such applications. Augmented Reality programs then become much shorter, consisting of only a few lines of code
/me wants it: Scraping Sites to get Data
Life would be so much easier if the data contained in websites was available raw via APIs. Alas, until that mythical day comes we either need to deal with unhelpful people via email and phone, or just get it ourselves. Python has some great tools available to help with building scrapers and for parsing and formatting the data we get. Starting off with the basics - tracking what needs to be done, making web requests, parsing HTML, following links, and extricating data from Excel and PDF documents. Then linking to a number of advanced tools for dealing with logins, forms, and other complexities
Source Code: Querying and Serving N-gram Language Models with Python
Statistical n-gram language modeling is a very important technique in Natural Language Processing (NLP) and Computational Linguistics used to assess the fluency of an utterance in any given language. It is widely employed in several important NLP applications such as Machine Translation and Automatic Speech Recognition. However, the most commonly used toolkit to build such language models on a large scale is written entirely in C++ which presents a challenge to an NLP developer or researcher whose primary language of choice is Python. The primary article describes how to build a native and efficient Python interface to this toolkit such that such language models can be queries and used directly in Python code. In addition, it also describes how to build a Python language model server. Such a server can prove to be extremely useful when the language model needs to be queried used by multiple clients over a network: the language model must only be loaded into memory once by the server and can then satisfy multiple requests. This article supplements the primary article and provides the entire set of source code listings along with appropriate technical comments where necessary. Some of the listings may already be included with the primary article (in complete or excerpted form) but are reproduced here for the sake of completeness
An Introduction to pulp for Python Programmers
Pulp-or (referred to as pulp for the rest of this paper) is a linear programming framework in Python. Pulp is licensed under a modified BSD license. The aim of pulp is to allow an Operations Research (OR) practitioner or programmer to express Linear Programming (LP), and Integer Programming (IP) models in python in a way similar to the conventional mathematical notation. Pulp will also solve these problems using a variety of free and non-free LP solvers. Pulp models an LP in a natural and pythonic manner.This paper is aimed at the python programmer who may wish to use pulp in their code. As such this paper contains a short introduction to LP models and their uses
SOFA Statistics Developing, packaging, & promoting a Python open source project
SOFA Statistics (http://www.sofastatistics.com) is an open source desktop Python application with an emphasis on ease of use, learn as you go, and attractive output. This paper will cover my experiences with some of the technical aspects of the project as well as project management issues. Specific areas covered will include:Ģ Using the cross-platform GUI toolkit wxPython (including wxWebKit andthe grid widgets)Ģ The different roles of Matplotlib and Raphael (Javascript and SVG) in theapplication.Ģ Experience using different database engines including SQLite, MySQL, MSAccess, and MS SQL ServerĢ Issues with standard statistics modules e.g. SciPyĢ Making python installer packages currently only deb packages andWindows installers (using NSIS) and managing releases.Ģ Using Sourceforge, Freshmeat, and Launchpad (including Bazaar)Ģ Promoting the project through announcements, blogging, and answeringposts
Rapid GUI Application Development with Python
Options and tools for rapid desktop GUI application development using Python are examined, with a list of options for each stage of the tool chain