Python Plant Extract Document processor
Project description
A package for interacting with [SunSpec](http://sunspec.org) Plant Extract Documents and the standard blocks contained therein.
Installation
Using pip:
pip install plantextract
Usage
Typical usage looks like this:
#!/usr/bin/env python from plantextract.ped import PlantExtract from plantextract.smdx import SMDX ped = PlantExtract('ped-file-to-process') # automatic parsing of envelope ped.parse_data() # will parse an included sunSpecData block print ped.plant # the Plant Info block print ped.plant.name # the Plant's name attribute # ...etc... print ped.sunspec_data # the sunSpecData block print ped.sunspec_data.device_records[0].models[0].smdx # SMDX info of model print ped.sunspec_data.device_records[0].models[0].points[0] # block structure
Requires [lxml](http://lxml.de) 3.0.1.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plantextract-0.2.8.tar.gz
(50.3 kB
view hashes)
Built Distribution
plantextract-0.2.8-py2.7.egg
(128.4 kB
view hashes)