Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 607 Bytes

README.rst

File metadata and controls

25 lines (16 loc) · 607 Bytes

PC Axis (.px) parser for Python

Requirements

pyparsing>=1.5.2

Simple example

A simple example:

import pcaxis
data = pcaxis.parsePX(open('test.px').read(), encoding='utf-8')
print data['TITLE']

The parsePX function returns a dictionary of containing keys such as TITLE or DESCRIPTION and coresponding values. Under DATA you'll find the table data.

The API is practically nonexistant (I imagine values could be accessed by indexing) and not all features are supported or implemented, only a subset, which was needed for my use case.