schrodinger.application.jaguar.keywordDB module

class schrodinger.application.jaguar.keywordDB.Keyword(name, type, default, description=None, comment=None, index=0, boolean=None, qsite_allowed=None)[source]

Bases: object

A class to hold keyword info.

__init__(name, type, default, description=None, comment=None, index=0, boolean=None, qsite_allowed=None)[source]
get_macro()[source]

Return C-style macro string from Keyword attributes

class schrodinger.application.jaguar.keywordDB.Setting(name, code, value, description=None, comment=None)[source]

Bases: object

A class to hold keyword setting info.

__init__(name, code, value, description=None, comment=None)[source]
get_macro()[source]

Return C-style macro string from Setting attributes

class schrodinger.application.jaguar.keywordDB.DTDTreeBuilder(element_factory=None, *, comment_factory=None, pi_factory=None, insert_comments=False, insert_pis=False)[source]

Bases: xml.etree.ElementTree.TreeBuilder

We create this subclass and redefine doctype() to avoid:
“DeprecationWarning: This method of XMLParser is deprecated.

Define doctype() method on the TreeBuilder target”

doctype(name, pubid, system)[source]
__init__(element_factory=None, *, comment_factory=None, pi_factory=None, insert_comments=False, insert_pis=False)
close()

Flush builder buffers and return toplevel document Element.

comment(text)

Create a comment using the comment_factory.

text is the text of the comment.

data(data)

Add text to current element.

end(tag)

Close and return current Element.

tag is the element name.

pi(target, text=None)

Create a processing instruction using the pi_factory.

target is the target name of the processing instruction. text is the data of the processing instruction, or ‘’.

start(tag, attrs)

Open new element and return it.

tag is the element name, attrs is a dict containing element attributes.

schrodinger.application.jaguar.keywordDB.load_keywords(filename)[source]

Load keywords from an XML file in jaguar_keywords.dtd format. Return a list and dictionary of Keyword objects. Keyword names and values are stored in lowercase.