Private functions#

get_engine._hit#

Signature:

  • **get_engine._hit**(matches)

Parameters:

  • __matches:__ List of matches.

Returns:

  • The if the engine is one of those matches.

Raises:

  • (this function does not raise any notable errors)

CachedDict.__getitem__#

Overrides dict-like usages of the form: “v = d[‘my_key’]” to query from the database…

Signature:

  • **CachedDict.__getitem__**(self, key)

Parameters:

  • __key:__ Key and.

Returns:

  • The value.

Raises:

  • A KeyError if strict_mode is True and the key is not found.

CachedDict.__setitem__#

Overrides dict-like usages of the form: “d[‘my_key’] = v” to save to the database. For a JSONDatabase, this will save the updated json to a file..

Signature:

  • **CachedDict.__setitem__**(self, key, value)

Parameters:

  • __key:__ Key.

  • __value:__ Value.

Returns:

  • None.

Raises:

  • (this function does not raise any notable errors)

CachedDict.__delitem__#

Overrides dict-like usages of the form: “del d[‘my_key’]” to delete a key from the database. For a JSONDatabase, this will save the updated json to a file..

Signature:

  • **CachedDict.__delitem__**(self, key)

Parameters:

  • __key:__ Key.

Returns:

  • None.

Raises:

  • (this function does not raise any notable errors)

CachedDict.__str__#

The string output function for debugging.

Signature:

  • **CachedDict.__str__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

CachedDict.__repr__#

The string output function for debugging.

Signature:

  • **CachedDict.__repr__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

MoobiusStorage.__str__#

The string output function for debugging.

Signature:

  • **MoobiusStorage.__str__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

MoobiusStorage.__repr__#

The string output function for debugging.

Signature:

  • **MoobiusStorage.__repr__**(self)

Parameters:

  • __(this class constructor accepts no arguments):__

Returns:

  • The easy-to-read string summary.

Raises:

  • (this function does not raise any notable errors)

Private attributes#

get_engine._hit

get_engine._hit

get_engine._hit