在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:vallettea/koala开源软件地址:https://github.com/vallettea/koala开源编程语言:Python 100.0%开源软件介绍:KoalaKoala converts any Excel workbook into a python object that enables on the fly calculation without the need of Excel. Koala parses an Excel workbook and creates a network of all the cells with their dependencies. It is then possible to change any value of a node and recompute all the depending cells. You can read more on the origins of Koala here. If you are looking for ways to contribute, you can get started here. Get startedInstallationKoala is available on pypi so you can just:
alternatively, you can download it and install the last version from github:
BasicKoala is still in early stages of developement and feel free to leave us issues when you encounter a problem. Graph generationThe first thing you need is to convert your workbook into a graph. This operation may take some time depending on the size of your workbook (we've used koala on workbooks containing more than 100 000 intricated formulas).
If this step fails, ensure that your Excel file is recent and in standalone mode (open it with Excel and save, it should rewrite the file and the resulting file should be three of four times heavier). Graph SerializationAs the previous conversion can be long on big graphs, it is often useful to dump the graph to a file:
which can be reloaded later with:
Graph EvaluationYou can read the values of some cells with
Named cells or rangeIf your Excel file has names defined, you can use them freely:
AdvancedCompiler optionsYou can pass
In case you have very big files, you might want to reduce the size of the output graph. Here are a few methods. VolatilesVolatiles are functions that might output a reference to Cell rather than a specific value, which impose a reevaluation every time. Typical examples are INDEX and OFFSET. After having created the graph, you can use
Warning: this implies that Cells concerned by these functions will be fixed permanently. If you evaluate a cell whose modified parents are separated by a pointer, you may encounter errors. WIP: we are working on automatic detection of the required pointers. OutputsYou can specify the outputs you need. In this case, all Cells not concerned in the calculation of these output Cell will be discarded, and your graph size will be reduced.
Pruning inputsIn this case, all Cells not impacted by inputs Cells will be discarded, and your graph size will be reduced.
Fix and free CellsYou might need to fix a Cell, so that its value is not reevaluated. You can do that with:
By default, all Cells on which you use You can free your fixed cells with:
When you free a Cell, it is automatically reevaluated. Set formulaIf you need to change a Cell's formula, you can use:
The ** You will find more examples and sample excel files in the directory Detect aliveTo check if you have "alive pointers", i.e., pointer functions that have one of your inputs as argument, you can use:
This will also change the Create from scratchThe graph can also be created from scratch (not by using a file).
LicenceGPL |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论