Summer of Code / 2005 - Python Wiki
Python Wiki Python Wiki / Python Wiki / Summer of Code / Summer of Code / Summer of Code / 2005 View as Markdown Summer of Code / 2005 ¶ Legacy Wiki Page This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org . These are the Google “Summer of Code” projects involving Python that were funded in 2005. Note: if a project is listed as having two mentors, the first mentor listed is the primary mentor, and the second one is the back-up mentor.
Python Implementation of the Data Access Protocol ¶ Student: Roberto Antonio Ferreira De Almeida Mentor: Paul DuBois. Web page: OPeNDAP/DODS module for Python Proposal ¶ The Data Access Protocol (DAP) is a data transmission protocol designed specifically for science data. The protocol relies on the widely used HTTP and MIME standards, and provides data types to accommodate gridded data, relational data, and time series, as well as allowing users to define their own data types.
The initiative is funded by NASA, and counts with the support of several institutions. Hundreds of scientific datasets are available on the internet through DAP servers, which can be accessed remotely by DAP clients in a transparent and efficient way. Here I propose to develop a Python implementation of the protocol based on its latest specification. The proposed implementation will consist of a client module that will allow Python applications to access remote datasets, as well as a server for data stored in a variety of formats commonly used by the scientific community, including NetCDF and Matlab files.
Outcome ¶ The proposal was completed as stated, and is already in use by some scientists. It can be used together with the Python-based CDAT tool or alone. Bitten: A Python framework for collecting software metrics from automated builds ¶ Student: Christopher Lenz Mentors: Greg Wilson, Trent Mick. Web page: Bitten Proposal ¶ The goal of this work is to design and implement a distributed system for automated builds and continuous integration that allows the central collection and storage of software metrics generated during the build.
The information collected this way needs to be structured and available in a machine-readable format, so that it can be analyzed, aggregated/correlated and presented after the build itself has completed. Outcome ¶ Lots of good code, very good time management and prioritization, and he’s delivered a working system. (Lots still to be done, of course, but it’s up and running.) See http://bitten.cmlenz.net for details.
OpenExVis - A Program Visualization Tool ¶ Student: Tero Kuusela Mentor: David Ascher. Proposal ¶ The goal is to write, in Python, a functional program visualization tool that can visualize Python code. With the visualization tool, one can write a program and see the execution visualized to help understanding how the program works. This is especially useful to assist students learning how to program. The project website, where you can also find the original proposal sent to Google, is at http://openexvis.sourceforge.net/ and the progress during Summer of Code is tracked in Tero’s blog at http://www.teroajk.net/blog/ .
Outcome ¶ David says: The project successfully animates several Python program through instrumentation of the low-level hooks inside standard Python interpreters. The demonstration program works, and a screencast is avalable off of the project’s home page for people who don’t have access to a Linux machine with the required dependencies installed. The project needs more work before it can be useful in an educational context, and there are probably features & bug fixes needed, but the foundational bits seem good!
Wax ¶ Student: Jason Gedge Mentors: Hans Nowak Proposal ¶ This project consists of updating the Wax library for Python. Code will be updated, or even added, to further develop the Wax library. Also, a primary focus will be that of documentation, which Wax currently lacks. Outcome ¶ Many additions to Wax were released in these two months, including WaxRF (a system to load forms from XML, much like wxPython’s XRC), a documentation viewing/generating tool, and a number of new controls.
Some existing issues were also fixed ( OverlaySizer , Wizard). More information at http://zephyrfalcon.org/weblog2/arch_e10_00810.html#e817 . Data Serving/Collection Framework in Python/WSGI ¶ Student: Ho Chun Wei Weblog: http://cwho.blogspot.com/ Mentors: Ian Bicking Proposal ¶ A framework based on bulk data serving/collection via the internet. Bulk data are in the form of files that could easily be several hundred MB (not surveys or simple POST data).
The client has a file repository that it wishes to sync to the server (a WSGI application). This server should be able to facilitate transfer via a number of protocols, including HTTP file transfer, HTTP form upload, FTP, Email. This project is aimed not at yet another ad-hoc file transfer or p2p file-sharing program but as a persistent production setup for transferring data from data collection sites/areas to a server, possibly via internet through different methods to get through strict organizational firewalls and web admins.
Outcome ¶ I’d consider the code a solid beta. There’s probably packaging and documentation work to be done, but that’s the kind of thing that only user experience feedback will really accomplish well, IMHO. Also it’s something where there’s No One Right Way (yet!) to distribute web applications, so it’ll evolve in time. We changed projects at the start from his original proposal to something we both found more interesting/useful, a WebDAV server.
There were good generic WebDAV tests already written (acceptance only, but picky acceptance tests). Python Bayesian Network Toolbox ¶ Student: Elliot Cohen Mentor: James Tauber Web page: PBNT – Python Bayesian Network Toolbox Proposal ¶ Understanding about Bayesian Belief Networks and use of them is becoming more and more widespread. As understanding develops and spreads out of the research community, there is greater and greater need for a simple to use efficient open source Bayesian Network Toolbox.
Bayesian Networks have been used to study a wide array of different areas including, ecological systems, medical diagnoses and financial modeling, among others. Currently, tools to define and use Bayesian Networks are limited to expensive closed source libraries or open source libraries designed for too specific a domain. One package that does support many varieties of Bayesian Networks is Kevin Murphy’s Full BNT, which supports both discrete and continuous probability distributions in static and dynamic Bayesian Networks.
For (almost) daily updates please see http://elliotpbnt.blogspot.com . Outcome ¶ Elliot Cohen has done a great job with the Python Bayes Network Toolbox. He will undoubtedly continue working on pbnt after the SoC but I’ve encouraged him to get it ready for an initial release to get it out to a wider audience. I have high hopes that this package will be useful to people wanting to do real work on Bayesian Network based inference and learning and I’m excited that the existence of pbnt means Python becomes a natural choice for this sort of work.
Efficiently Analysing Data Polymorphism and Deducing Generics in Shedskin ¶ Student: Mark Dufour Mentors: Jeremy Hylton, Brett Cannon Proposal ¶ As part of my Master’s Thesis, I am working on a Python-to-C++ compilation system, called Shedskin. Currently, it performs static type inference based on two techniques. The Cartesian Product Algorithm is used to handle parametric polymorphism (calling functions with different combinations of argument types); single-level class duplication, or 1CFA, is employed to handle data polymorphism (mostly polymorphic containers, such as list; in 1CFA, each allocation site gets its own class type, so we can analyze these (somewhat) precisely.) R
The rest of this page is on the live site.