Python reader for SPSS .por files

Category: Python - Miscellaneous

SPSS can output ASCII .por files that include variable definitions (labels, value labels) and data. These files are useful to be able to read but strange enough I couldn't find any documentation anywhere.

I've reverse engineered the format so that it works for the (fairly complex) files I need to open, so maybe it is of some use for other people interfacing SPSS with python.

This code is placed in the public domain as far as allowed by law, parts (if any) that cannot be relased in the public domain are irrevocably licensed to all readers under the Creative Commons license without restrictions ... but if you improve it it would be great if you could share it. The code uses a base N decoder plucked from the web somewhere (can't find it) that was also public domain.

-- wouter (wouter@vanatteveldt.com) Date: 20 January, 2012


Por - Portable - Reader - Spp - Value Labels

Homepage: http://code.activestate.com/recipes/576809-python-reader-for-spss-por-files/?in=lang-python

Developer: wouter

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

A portable and cycle-accurate NES/Famicom emulator written in C++.

developer Developer: nestopia
license License: GNU General Public License (GPL)
operating systems Operating System: 32-bit MS Windows (NT/2000/XP)


Yabause is a portable Sega Saturn emulator.

developer Developer: yabause.org
license License: GNU General Public License (GPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), All POSIX (Linux/BSD/UNIX-like OSes), FreeBSD, Linux, OS X, Sega Dreamcast


A 3D and portable chess game with an embedded Artificial Intelligence and some pretty good graphics.

developer Developer: pouetchess
license License: GNU General Public License (GPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), OS Portable (Source code to work with many OS platforms), Linux


Abyss web server is multi-platform compatible.

developer Developer: RF
license License: Freeware
operating systems Operating System: All


BoompAZAzA.

developer Developer: boomp.com
license License: Freeware
operating systems Operating System: All


As the visitors scroll up and down your site, the menu moves up and down with them.

developer Developer: javascriptsource.com
license License: Freeware
operating systems Operating System: All


A program to test libCoroutine.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


I realised a lack of an nth root function within Python maths' modules, even though, you could fulfil the task by using the power function, and I wrote nth-Root program.

developer Developer: Fouad Teniou
license License: Freeware
operating systems Operating System: Windows


Generates HTML highlighted code listings for source code files in any language known to
pygments.

developer Developer: ccpizza
license License: Freeware
operating systems Operating System: Windows