4 ms·
This is something I built a little while ago. It's a proof-of-concept and inspired by what I was doing in my day job. To play with the demo spreadsheet you'll
by bsdz 5y ago
This is something I built a little while ago. It's a proof-of-concept and inspired by what I was doing in my day job.
To play with the demo spreadsheet you'll need to clone the repo and run the demo script, ie:
git clone git@github.com:bsdz/calcengine.git
cd calcengine
python3 -mvenv --prompt calceng .venv
. ./.venv/bin/activate
poetry install -E demo
python demo/spreadsheet/main.py
There's an inline gif showing the spreadsheet in use.
Hope it's interesting :)
- doovd 5y agoThis is a core principle in a lot of the dependency-graph-based frameworks seen in banks (secdb, Athena, quartz) etc. Inspired by those?
- bsdz 5y agoIndeed. Actually with-in the demo samples folder you can find a simple QuantLib example (quantlib.json). Although you'll need to install the QuantLib package separately as I didn't include it in the dependencies.
- timkpaine 5y agoYou may also be interested in: https://github.com/timkpaine/tributary/blob/main/docs/examples/lazy/lazy.md https://github.com/timkpaine/tributary/blob/main/docs/exampl...
- bsdz 5y agoYes I am. Thanks for sharing.
- wirthjason 5y agoThe Dag/graph is one of the best parts of those tool chains. That is one library I wish had a good open source equivalent. Partly because it would be nice to use in any project / environment, but also because there would be a lot more documentation and examples. Take Pandas for example, if it stayed internal then it wouldn’t be the powerhouse that it is today. Most dependency graph examples are based around calculations but it’s a versatile pattern and not limited to just math. I find the JS community has really taken hold of the dependency tracking and “reactive framework” idea to build UIs.
- maleldil 5y agoWhy create a venv and then run poetry install? Poetry already manages virtual environments.
- bsdz 5y agoTrue. Just an old habit.
- phkahler 5y agoWhy QT and not tkinter?
- bsdz 5y agoNo reason in particular. Qt has some easy to use widgets and is well documented. I've also some experience with Qt.