python binding for parsley
Go to file
Kyle Maxwell af4e54b3b9 works with python2.5 and simplejson 2009-03-06 15:05:18 -08:00
test rename dex to parsley 2009-03-03 22:25:00 -08:00
.gitignore python as root 2009-03-03 22:23:45 -08:00
README readme 2009-03-04 18:16:41 -08:00
pyparsleymodule.c works with python2.5 and simplejson 2009-03-06 15:05:18 -08:00
setup.py python as root 2009-03-03 22:23:45 -08:00

README

ABOUT

Python bindings for Parsley.

INSTALLATION

= Get Parsley and Dependancies = 

Download Parsley from http://github.com/fizx/parsley/tree/master following the installation directions located at http://github.com/fizx/parsley/blob/master/INSTALL

= Install pyparsely =

sudo python setup.py install

= Example Code =

  from pyparsley import PyParsley

  parselet = PyParsley({ 
                         "title": "title", 
                         "links(a)": [
                           { 
                             "name": ".", 
                             "href": "@href" 
                           }
                         ]
                       })
  json_string = parselet.parse(file = some_file, output = "json")
  # Using Parsley's builtin URI fetching.
  json_string = parselet.parse(file = "http://www.example.com/", output = "json")