Skip to content

Commit 0152f97

Browse files
committed
Documentation
1 parent e95f766 commit 0152f97

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ Python script to visualize dependencies between cells in Excel spreadsheets.
88

99
Meant as a tool to visualize and understand the complexity of Excel spreadsheets.
1010

11-
Will generate a graph of the dependencies between cells in an Excel spreadsheet. Data extracted with `openpyxl` (\The graph is generated using the `networkx` library (<https://networkx.org/>) and is visualized using `matplotlib`.
11+
Will generate a graph of the dependencies between cells in an Excel spreadsheet. Data extracted with `openpyxl` (<https://foss.heptapod.net/openpyxl/openpyxl>), the graph is generated with the `networkx` library (<https://networkx.org/>) and is visualized using `matplotlib`.
1212

13-
This is a simple tool and does not
13+
This is a simple tool and maybe even naïve in its approach - it was hacked together in two evenings and would benefit from some refactoring and more features. It is meant as a starting point for further development.
14+
<br clear="right"/>
1415

1516
## Definitions
1617

1718
Single-cell references in a formula sitting in cell `A3` like `=A1+A2` is considered a dependency between the node `A3` and the nodes `A2` and `A1`.
1819

1920
A range defined in a formula like `=SUM(B1:B200)` is semantically handled like a single reference or node in the tree and not 200 individual nodes in the graph.
2021

21-
<br clear="right"/>
22-
2322
## Installation
2423

2524
```bash
@@ -35,12 +34,14 @@ pip install -r requirements.txt
3534
python graphbuilder.py <path_to_excel_file> [--verbose] [--no-visualize] [--keep-direction]
3635
```
3736

38-
Depending on the size of the spreadsheet you might want to adjust the plot configuration in the code to to make the graph more readable (remove labels, decrease widhts and sizes etc)
37+
Depending on the size of the spreadsheet you might want to adjust the plot configuration in the code to to make the graph more readable (remove labels, decrease widths and sizes etc)
3938

4039
### Arguments
4140

4241
`--verbose` will dump formula cell contents during (more quiet)
42+
4343
`--no-visualize` will skip the visualization step and only print the summary (faster)
44+
4445
`--keep-direction` will keep the direction of the graph as it is in the excel file, otherwise it will be simplified to an undirected graph (slower)
4546

4647
## Sample output
@@ -90,11 +91,12 @@ pytest test_cell_reference_extraction.py
9091

9192
Feel free to contribute by opening an issue or a pull request.
9293

93-
You can help with the following:
94+
You can help with the following, that I have thought of so far:
9495

9596
- Add more tests
9697
- Improve the code
9798
- Add more features
9899
- Improve the visualization and the ease of configuration
99100
- Add more examples
100101
- Add more documentation
102+
- Package the script for easier installation and use with PyPi

images/Book1.xlsx.png

56.9 KB
Loading

0 commit comments

Comments
 (0)