/generator-category-id-and-parent-id

Generating the id and parent_id of categories. Get a category tree array from a CSV file

Primary LanguagePythonMIT LicenseMIT

generator-category-id-and-parend-id

Generating the id and parent_id category from csv list (python3)

This method need manual prepare of categories tree

CsvRead('csv/categories_example.csv').toList()
categories = generatorIDCategory(c)
CsvRead('csv/export_categories.csv').save(categories)
# or another method save categories name, id, parent_id

Example categories before generate id/parent_id
Example categories after