rdkit.VLib.NodeLib.SDSupply.SDSupplyNode

Package rdkit :: Package VLib :: Package NodeLib :: Module SDSupply :: Class SDSupplyNode |
[hide private]
[frames] | no frames]

# Class SDSupplyNode

source code

       object --+
                |
    Node.VLibNode --+
                    |
    Supply.SupplyNode --+
                        |
                       SDSupplyNode

    SD supplier

    Sample Usage:
      >>> fileN = os.path.join(RDConfig.RDCodeDir,'VLib','NodeLib',                             'test_data','NCI_aids.10.sdf')
      >>> suppl = SDSupplyNode(fileN)
      >>> ms = [x for x in suppl]
      >>> len(ms)
      10
      >>> ms[0].GetProp("_Name")
      '48'
      >>> ms[1].GetProp("_Name")
      '78'
      >>> suppl.reset()
      >>> suppl.next().GetProp("_Name")
      '48'
      >>> suppl.next().GetProp("_Name")
      '78'

Instance Methods | [hide private]
__init__(self, fileName, **kwargs) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
reset(self) resets our iteration state | source code
next(self) | source code
Inherited from `Supply.SupplyNode`: `AddParent` Inherited from `Node.VLibNode`: `AddChild`, `Destroy`, `GetChildren`, `GetParents`, `RemoveChild`, `RemoveParent`, `__iter__` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, fileName, **kwargs) (Constructor) | source code
    x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__ (inherited documentation)

### reset(self) | source code
    resets our iteration state
Overrides: Node.VLibNode.reset (inherited documentation)

### next(self) | source code
Overrides: Node.VLibNode.next