New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile individual functions (or entire model) to python code #44
Comments
The easiest solution and the most portable one is to dump the What do you think? Is it a suitable solution for your problem? |
I have implemented the solution that I mentioned above. Follows an example of usage:
The JSON has the following format:
To retrieve the model:
|
This is great - I ended up going in an altogether different direction with my project, but I think I'll try out this new feature as well. Thanks! |
I'm working on converting a large excel workbook into a python tool. The workbook has gotten complex enough that it takes a long time to run, and maintaining it is painstaking. This great package you've built largely solves my first problem - I could convert the workbook into an
ExcelModel
to be used behind an API, which would speed things up and enable parallelization. However, it doesn't make my tool easier to maintain.I would like to be able to convert the DAGs that
ExcelModel
andParser
build into a readable python module. Each function in the DAG would become an atomic function in the module. As an example: if we had an excel sheet where the D1 cell contains the formula=SUM(A1:C1)
, this tool might produce a function like this:This would lay out working (albeit not very clear) code that would be the starting point for turning a workbook into a clean python project.
I started fiddling with this idea, but my ignorance of the inner workings of
formulas
andschedula
made this a very slow-going process. I was hoping someone might have some insights into how this could be done. Totally understood if you think this shouldn't be a feature of this package, but I would really appreciate some ideas regardless.The text was updated successfully, but these errors were encountered: