Index of /python/erdfg

      Name                    Last modified       Size  Description

[DIR] Parent Directory 27-Aug-2008 03:19 - [TXT] Changes 23-Jun-2006 11:26 5k [   ] erdfg-0.1.tar.gz 01-Apr-2006 10:45 9k [   ] erdfg-0.2.tar.gz 02-Apr-2006 13:26 9k [   ] erdfg-0.3.tar.gz 02-Apr-2006 16:19 9k [   ] erdfg-0.4.tar.gz 05-Apr-2006 01:03 10k [   ] erdfg-0.5.tar.gz 20-Apr-2006 10:02 10k [   ] erdfg-0.6.tar.gz 23-Jun-2006 11:26 13k

NAME
    erdfg - Python classes for working with Eatdrinkfeelgood 2.0a (erdfg)
    documents

SYNOPSIS
     from sys import argv
     from erdfg.writer import writer

     wr = writer(argv[1])
     wr.text()

     #

     from sys import argv
     from erdfg.parser import parser

     p = parser(argv[1])
     print p.dump()

DESCRIPTION
    Python classes for working with Eatdrinkfeelgood 2.0a (erdfg) documents.

PARSERS
  parser.parser(/path/to/erdfg)
    Return a erdfg.parser object.

  parser.dump()
    Returns a erdfg document as a Python-ic data structure.

WRITERS
  writer.write(/path/to/erdfg)
    Return a erdfg.writer object.

  writer.text(filehandle)
    Pretty prints a erdfg document as plain text, wrapped at 72 characters.
    If no filehandle is passed to the method, it will print to STDOUT.

  writer.xml(filehandle, format="edfg11")
    Pretty prints a erdfg document as XML. At the moment, the only format
    supported in Eatdrinkfeelgood 1.1. If no filehandle is passed to the
    method, it will print to STDOUT.

  writer.json(filehandle)
    Pretty prints a erdfg document as a JSON string. If no filehandle is
    passed to the method, it will print to STDOUT (possibly encoding it as
    ASC-II and, yes, invalidating the requirement that all JSON thingies be
    UTF-8).

VERSION
    0.6

DATE
    $Date: 2006/06/23 15:22:38 $

AUTHOR
    Aaron Straup Cope

REQUIREMENTS
    <http://rdflib.net/>

SEE ALSO
    <http://eatdrinkfeelgood.org/>

LICENSE
    Copyright (c) 2006 Aaron Straup Cope. All Rights Reserved.

    This is free software. You can redistribute it and/or modify it under
    the same terms as Perl Artistic License itself.