ccd
This module provides methods for reading and working with CCD files.
The CCD object cannot be directly submitted to the engine, however the
CCD.as_inputdoc method will provide an object that can be passed to
emtellipro.engine.Emtellipro.submit.
Examples:
You can load a CCD document either from a file-like object or from a string. The string option is useful if you’re reading the CCD document from a database.
It’s possible to later use the CCD document for processing, although it’s
recommended to use emtellipro.load.readfile instead to handle
different file types.
Module Contents
Classes
Functions
API
emtellipro.ccd.CCD
Bases: object
A CCD file.
Attributes:
text: The text contents of the CCD.metadata: A list of metadata items. See the “CCD file support” documentation on what metadata these items may contain.
Initialization
CCD.text
CCD.metadata
CCD.filepath
Value: None
CCD.as_inputdoc
See emtellipro.data.InputDocument for the meaning of the
arguments.
Parameters:
The category to set on the document
The subcategory to set on the document.
The optional section label, if needed.
Returns:
An input document that can be submitted for processing.
Return type: InputDocument
emtellipro.ccd.loads
Load a CCD from a string representation.
Parameters:
The contents of the CCD file.
Returns:
A CCD instance.
Return type: CCD
emtellipro.ccd.load
Load a CCD from a file-like object.
Parameters:
A file-like object that has a .read() method.
Returns:
A CCD instance.
Return type: CCD

