DataTree

DataTree is a DSL for creating structured documents in Python
Download

DataTree Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Creative Commons Att...
  • Publisher Name:
  • Jason Webb
  • Publisher web site:
  • https://github.com/bigjason/

DataTree Tags


DataTree Description

DataTree is a DSL for creating structured documents in Python DataTree is a DSL for creating structured documents in Python inspired by Rubys Builder, but supporting many structured output formats.Example:A small example: from datatree import Node author = Node('author') author.name('Terry Pratchett') author.genere('Fantasy/Comedy') with author.novels(count=2) as novels: novels.novel("Small Gods", year=1992) novels.novel("The Fifth Elephant", year=1999) print author.render()Which produces: < author > < name >Terry Pratchett< /name > < genere >Fantasy/Comedy< /genere > < novels count="2" > < novel year="1992" >Small Gods< /novel > < novel year="1999" >The Fifth Elephant< /novel > < /novels > < /author > Requirements: · Python Limitations: · This project is a work in progress and not ready for use yet.


DataTree Related Software