— Fact serializer, file)

Dumps the passed fact object into the file.

  • fact (Fact) – a fact object to serialize
  • file (file object) – a file to be written, reference_loader=None)

Loads the fact object from the passed file object.

  • file (file object) – a file to read
  • reference_loader (callable object) – a function that takes a fact id and returns a fact of it

a loaded fact object

Return type:



It doesn’t initialize loaded fact object’s metadata attributes e.g.:

  • __repo__
  • __rev__
  • __fact_id__, *args, **kwargs)

Does the same operations as load() function does except it takes a string instead of a file object.

Project Versions

Previous topic — Transcendental fact types

Next topic — Revision control of world

This Page