Mercurial > repos > shellac > guppy_basecaller
diff env/lib/python3.7/site-packages/prov/serializers/provn.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/prov/serializers/provn.py Thu May 14 16:47:39 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -from __future__ import (absolute_import, division, print_function, - unicode_literals) - -__author__ = 'Trung Dong Huynh' -__email__ = 'trungdong@donggiang.com' - -import io -import logging -logger = logging.getLogger(__name__) - -from prov.serializers import Serializer - - -class ProvNSerializer(Serializer): - """PROV-N serializer for ProvDocument - - """ - def serialize(self, stream, **kwargs): - """ - Serializes a :class:`prov.model.ProvDocument` instance to a - `PROV-N <http://www.w3.org/TR/prov-n/>`_. - - :param stream: Where to save the output. - """ - provn_content = self.document.get_provn() - if isinstance(stream, io.BytesIO): - provn_content = provn_content.encode('utf-8') - stream.write(provn_content) - - def deserialize(self, stream, **kwargs): - raise NotImplementedError