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)¶ Bases:
object
A class to hold keyword info.
-
__init__
(name, type, default, description=None, comment=None, index=0, boolean=None, qsite_allowed=None)¶ Initialize self. See help(type(self)) for accurate signature.
-
__str__
()¶ Return str(self).
-
__repr__
()¶ Return repr(self).
-
get_macro
()¶ Return C-style macro string from Keyword attributes
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.jaguar.keywordDB', '__doc__': '\n A class to hold keyword info.\n ', '__init__': <function Keyword.__init__>, '__str__': <function Keyword.__str__>, '__repr__': <function Keyword.__repr__>, 'get_macro': <function Keyword.get_macro>, '__dict__': <attribute '__dict__' of 'Keyword' objects>, '__weakref__': <attribute '__weakref__' of 'Keyword' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.jaguar.keywordDB'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
schrodinger.application.jaguar.keywordDB.
Setting
(name, code, value, description=None, comment=None)¶ Bases:
object
A class to hold keyword setting info.
-
__init__
(name, code, value, description=None, comment=None)¶ Initialize self. See help(type(self)) for accurate signature.
-
__str__
()¶ Return str(self).
-
__repr__
()¶ Return repr(self).
-
get_macro
()¶ Return C-style macro string from Setting attributes
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.jaguar.keywordDB', '__doc__': '\n A class to hold keyword setting info.\n ', '__init__': <function Setting.__init__>, '__str__': <function Setting.__str__>, '__repr__': <function Setting.__repr__>, 'get_macro': <function Setting.get_macro>, '__dict__': <attribute '__dict__' of 'Setting' objects>, '__weakref__': <attribute '__weakref__' of 'Setting' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.jaguar.keywordDB'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
schrodinger.application.jaguar.keywordDB.
DTDTreeBuilder
¶ 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)¶
-
__class__
¶ alias of
builtins.type
-
__delattr__
¶ Implement delattr(self, name).
-
__dict__
= mappingproxy({'__module__': 'schrodinger.application.jaguar.keywordDB', '__doc__': '\n We create this subclass and redefine doctype() to avoid:\n "DeprecationWarning: This method of XMLParser is deprecated.\n Define doctype() method on the TreeBuilder target"\n ', 'doctype': <function DTDTreeBuilder.doctype>, '__dict__': <attribute '__dict__' of 'DTDTreeBuilder' objects>, '__weakref__': <attribute '__weakref__' of 'DTDTreeBuilder' objects>})¶
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
¶ Initialize self. See help(type(self)) for accurate signature.
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__module__
= 'schrodinger.application.jaguar.keywordDB'¶
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__
¶ list of weak references to the object (if defined)
-
close
()¶
-
data
()¶
-
end
()¶
-
start
()¶
-
schrodinger.application.jaguar.keywordDB.
load_keywords
(filename)¶ 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.