class documentation

class PythonItemExporter(BaseItemExporter): (source)

View In Hierarchy

This is a base class for item exporters that extends :class:`BaseItemExporter` with support for nested items. It serializes items to built-in Python types, so that any serialization library (e.g. :mod:`json` or msgpack_) can be used on top of it. .. _msgpack: https://pypi.org/project/msgpack/

Method export_item Undocumented
Method serialize_field Undocumented
Instance Variable binary Undocumented
Instance Variable encoding Undocumented
Method _configure Configure the exporter by popping options from the ``options`` dict. If dont_fail is set, it won't raise an exception on unexpected options (useful for using with keyword arguments in subclasses ``__init__`` methods)...
Method _serialize_item Undocumented
Method _serialize_value Undocumented

Inherited from BaseItemExporter:

Method __init__ Undocumented
Method finish_exporting Undocumented
Method start_exporting Undocumented
Instance Variable export_empty_fields Undocumented
Instance Variable fields_to_export Undocumented
Instance Variable indent Undocumented
Method _get_serialized_fields Return the fields to export as an iterable of tuples (name, serialized_value)
Instance Variable _kwargs Undocumented
def export_item(self, item): (source)
def serialize_field(self, field, name, value): (source)

Undocumented

def _configure(self, options, dont_fail=False): (source)

Configure the exporter by popping options from the ``options`` dict. If dont_fail is set, it won't raise an exception on unexpected options (useful for using with keyword arguments in subclasses ``__init__`` methods)

def _serialize_item(self, item): (source)

Undocumented

def _serialize_value(self, value): (source)

Undocumented