shuup.importer package

Submodules

shuup.importer.apps module

class shuup.importer.apps.AppConfig(*args, **kwargs)[source]

Bases: shuup.apps.AppConfig

name = 'shuup.importer.apps'
verbose_name = 'Import'
label = 'importer'
provides = {'admin_module': ['shuup.importer.admin_module:ImportAdminModule']}

shuup.importer.exceptions module

exception shuup.importer.exceptions.ImporterError(message, code=None, params=None)[source]

Bases: django.core.exceptions.ValidationError

The message argument can be a single error, a list of errors, or a dictionary that maps field names to lists of errors. What we define as an “error” can be either a simple string or an instance of ValidationError with its message attribute set, and what we define as list or dictionary can be an actual list or dict or an instance of ValidationError with its error_list or error_dict attribute set.

shuup.importer.tasks module

shuup.importer.tasks.import_file(importer, import_mode, file_name, language, shop_id, supplier_id=None, user_id=None, mapping=None)[source]

shuup.importer.transforms module

class shuup.importer.transforms.RowYielder(sheet_or_data)[source]

Bases: object

transform_values(row)[source]
class shuup.importer.transforms.XLSRowYielder(sheet_or_data)[source]

Bases: shuup.importer.transforms.RowYielder

class shuup.importer.transforms.XLSXRowYielder(sheet_or_data)[source]

Bases: shuup.importer.transforms.RowYielder

class shuup.importer.transforms.TransformedData(mode, headers, rows, **meta)[source]

Bases: object

shuup.importer.transforms.process_data(rows)[source]
shuup.importer.transforms.transform_file(mode, filename, data=None)[source]
shuup.importer.transforms.py2_read_file(data, filename)[source]
shuup.importer.transforms.py3_read_file(data, filename)[source]

Module contents