5 ms·
It's nice to have as small dependencies as possible. If Pint provides everything your project needs, buying into the complete Sympy ecosystem is just a complexi
by nemetroid 5y ago
It's nice to have as small dependencies as possible. If Pint provides everything your project needs, buying into the complete Sympy ecosystem is just a complexity cost.
- riedel 5y agoHaving used sympy for rather simple task I wonder how much cost sympy really adds. Can you elaborate? It seems to me that symbolic evaluation and unit conversuin are not too far apart and buying into this ecosystem was never a big tech debt in my eyes. (Unlike maybe scipy or numpy)
- andy_ppp 5y agoEvery dependency adds complexity to your project, you might never notice it because the abstractions are water tight (for your use-case) but it’s there.
- riedel 5y agoYes but pint seems to add numpy and dask from a quick check. How is sympy worse? And maintaining sth yourself for sure adds complexity.
- gcthomas 5y agoFrom the documentation: Dependency free: it depends only on Python and its standard library. It interacts with other packages like numpy and uncertainties if they are installed
- riedel 5y agoOh I guess I looked into some build dependencies because there were actually none . This is actually a good thing more libraries should do. So I guess the only downside would be that potentially versioned dependencies/breaking changes need to be managed one level above if you want to use those parts. Is there actually a good way manage "supported" optional dependencies in python?