21

Is there a standard pythonic way to treat physical units / quantities in python? I saw different module-specific solutions from different fields like physics or neuroscience. But I would rather like to use a standard method than "island"-solutions as others should be able to easily read my code.

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
Philipp der Rautenberg
  • 2,212
  • 3
  • 25
  • 39

4 Answers4

10

quantities seems to be gaining a lot of traction lately.

julaine
  • 382
  • 3
  • 12
Autoplectic
  • 7,566
  • 30
  • 30
9

The best solution is the Unum package. a de-facto standard, imho.

Alex I
  • 19,689
  • 9
  • 86
  • 158
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
3

I've been looking at the Enthought Units module

3

There is also pint which in his documentation has a list of other projects in their faq's.

Andre
  • 427
  • 4
  • 17