rdkit.six module — The RDKit 2016.09.1 documentation

# rdkit.six module

Utilities for writing code that runs on Python 2 and 3

class `rdkit.six.` `Module_six_moves_urllib`

  Bases: `module`

  Create a six.moves.urllib namespace that resembles the Python 3 namespace

  `error` = <module 'rdkit.six.moves.urllib.error'>
  `parse` = <module 'rdkit.six.moves.urllib_parse'>
  `request` = <module 'rdkit.six.moves.urllib.request'>
  `response` = <module 'rdkit.six.moves.urllib.response'>
  `robotparser` = <module 'rdkit.six.moves.urllib.robotparser'>

class `rdkit.six.` `Module_six_moves_urllib_error`(name)

  Bases: `rdkit.six._LazyModule`

  Lazy loading of moved objects in six.moves.urllib_error

  `ContentTooShortError`
  `HTTPError`
  `URLError`

class `rdkit.six.` `Module_six_moves_urllib_parse`(name)

  Bases: `rdkit.six._LazyModule`

  Lazy loading of moved objects in six.moves.urllib_parse

  `ParseResult`
  `SplitResult`
  `parse_qs`
  `parse_qsl`
  `quote`
  `quote_plus`
  `splitquery`
  `unquote`
  `unquote_plus`
  `urldefrag`
  `urlencode`
  `urljoin`
  `urlparse`
  `urlsplit`
  `urlunparse`
  `urlunsplit`

class `rdkit.six.` `Module_six_moves_urllib_request`(name)

  Bases: `rdkit.six._LazyModule`

  Lazy loading of moved objects in six.moves.urllib_request

  `AbstractBasicAuthHandler`
  `AbstractDigestAuthHandler`
  `BaseHandler`
  `CacheFTPHandler`
  `FTPHandler`
  `FancyURLopener`
  `FileHandler`
  `HTTPBasicAuthHandler`
  `HTTPCookieProcessor`
  `HTTPDefaultErrorHandler`
  `HTTPDigestAuthHandler`
  `HTTPErrorProcessor`
  `HTTPHandler`
  `HTTPPasswordMgr`
  `HTTPPasswordMgrWithDefaultRealm`
  `HTTPRedirectHandler`
  `HTTPSHandler`
  `OpenerDirector`
  `ProxyBasicAuthHandler`
  `ProxyDigestAuthHandler`
  `ProxyHandler`
  `Request`
  `URLopener`
  `UnknownHandler`
  `build_opener`
  `getproxies`
  `install_opener`
  `pathname2url`
  `proxy_bypass`
  `url2pathname`
  `urlcleanup`
  `urlopen`
  `urlretrieve`

class `rdkit.six.` `Module_six_moves_urllib_response`(name)

  Bases: `rdkit.six._LazyModule`

  Lazy loading of moved objects in six.moves.urllib_response

  `addbase`
  `addclosehook`
  `addinfo`
  `addinfourl`

class `rdkit.six.` `Module_six_moves_urllib_robotparser`(name)

  Bases: `rdkit.six._LazyModule`

  Lazy loading of moved objects in six.moves.urllib_robotparser

  `RobotFileParser`

class `rdkit.six.` `MovedAttribute`(name, old_mod, new_mod, old_attr=None, new_attr=None)

  Bases: `rdkit.six._LazyDescr`

class `rdkit.six.` `MovedModule`(name, old, new=None)

  Bases: `rdkit.six._LazyDescr`

`rdkit.six.` `add_metaclass`(metaclass)

  Class decorator for creating a class with a metaclass.

`rdkit.six.` `add_move`(move)

  Add an item to six.moves.

`rdkit.six.` `b`(s)

  Byte literal

`rdkit.six.` `cmp`(t1, t2)

`rdkit.six.` `get_unbound_function`(unbound)

  Get the function out of a possibly unbound function

`rdkit.six.` `iteritems`(d, **kw)

  Return an iterator over the (key, value) pairs of a dictionary.

`rdkit.six.` `iterkeys`(d, **kw)

  Return an iterator over the keys of a dictionary.

`rdkit.six.` `iterlists`(d, **kw)

  Return an iterator over the (key, [values]) pairs of a dictionary.

`rdkit.six.` `itervalues`(d, **kw)

  Return an iterator over the values of a dictionary.

`rdkit.six.` `remove_move`(name)

  Remove item from six.moves.

`rdkit.six.` `reraise`(tp, value, tb=None)

  Reraise an exception.

`rdkit.six.` `u`(s)

  Text literal

`rdkit.six.` `with_metaclass`(meta, *bases)

  Create a base class with a metaclass.