Python bindings #469
Replies: 2 comments 3 replies
-
Just being part of the wider community, I have to admit to being somewhat sceptical: Looking at the functionality (meaning ignoring the diligently compiled list of quantities, units and associated constants), Thinking further, if you do manage to create wrappers for all of So while I am sceptical, I do not want to discourage from trying out. The above is pure speculation and the proof is in the pudding as they say. I'd suggest to start with a minimal example so that you can get a feel for the necessary wrapping and actually measure its runtime costs. Such a prototype would be a much improved basis for discussion IMHO. |
Beta Was this translation helpful? Give feedback.
-
@adamreichold had a really good summary. At it's core I haven't touched Python in a long long time so I won't be as much help on that side. Looking at the code you've provided so far there are a lot of untyped literals and |
Beta Was this translation helpful? Give feedback.
-
Hello
uom
community!My organization is running a number of Python services. At their core, they perform simple arithmetic calculations in the intersection of physics and accounting, such as adding and subtracting:
In addition, values are frequently string formatted and parsed. Nothing fancy, really.
So far, we have used custom pure-Python model classes for this purpose, since none of the Python libraries known to us satisfy our requirements in terms of performance and/or functionality. For example, astropy.units is one order of magnitude slower than our purpose built model classes.
Inspired by the spectacular success of polars, I started investigating ways to further speed up our services with the help of rust.
uom
caught my attention and I am now wondering whether it would be feasible to create PyO3 based Python bindings to make the power ofuom
available to the Python ecosystem.uom
core team and community?uom
bindings for Python?Beta Was this translation helpful? Give feedback.
All reactions