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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 100.0%