Index of /python/erdfg

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] erdfg-0.6.tar.gz 2008-11-22 11:33 13K GZIP compressed docume> [   ] erdfg-0.5.tar.gz 2008-11-22 11:33 10K GZIP compressed docume> [   ] erdfg-0.4.tar.gz 2008-11-22 11:33 10K GZIP compressed docume> [   ] erdfg-0.2.tar.gz 2008-11-22 11:33 9.5K GZIP compressed docume> [   ] erdfg-0.3.tar.gz 2008-11-22 11:33 9.5K GZIP compressed docume> [   ] erdfg-0.1.tar.gz 2008-11-22 11:33 9.1K GZIP compressed docume> [   ] Changes 2008-11-22 11:33 4.8K
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.