Module conn_factory
- ooodev.conn.conn_factory.get_from_json(s='')[source]
Gets a connector from a json string.
- Parameters:
s (str, optional) – Json str. Defaults to “”.
- Raises:
ValueError – If no connector key found in json data
ValueError – If unknown connector key found in json data
- Returns:
Connector if found, else
None
- Return type:
Note
If
None
is returned this usually means that the connection is a direct local connection as in a macro.The serialize string is usually gotten from the
connector.serialize()
method.New in version 0.44.0.