Metadata-Version: 2.4
Name: interactive_multi_category_table
Version: 0.0.5
Summary: A python package to create interactive tables with alternative category views from formatted json input.
Project-URL: Homepage, https://github.com/XiangCHEN-dvi/interactive-multi-category-table
Project-URL: Bug Tracker, https://github.com/XiangCHEN-dvi/interactive-multi-category-table/issues
Author-email: Xiang CHEN <xiangchen.ai@outlook.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# interactive-multi-category-table

![demo](assets/imct_demo.gif)

In many scenarios, contents are single-categorized and multi-tagged, by which I mean there are multiple tags but one single (though maybe hierarchical) category system, e.g., file systems, blogs, etc. However, sometimes contents can be categorized from different category views. For storage or lookup, one category system is OK; but for visualization and analysis, flexibly organizing the contents with different category views will be very handy.

This repo targets addressing such demand by creating interactive tables with alternative category views from formatted json input.

# usage

## generate a static webpage

Run command

```shell
python -c "from interactive_multi_category_table import json_to_html; json_to_html('your_json_file.json')"
```

and you will get the generated webpage in the same folder.

## input json file format

Refer to the provided examples for the json file format.

Note that:
- There have to be at least two category trees.
- Leaf category items in the same category tree cannot be the same.
