Python units/quantities packages

Business > IT development > Frameworks
0
2016-05-09 20:40:39
There are far too many different packages for unit conversion / quantities calculations in Python. Developers should cooperate on one package instead of fragmenting development across many different ones. This documents which features are supported by each package.
Last updateWebsitePyPI DLs/monthLast UpdateBuilt-in unitsBuilt-in constantsArbitrary prefixesnp scalar arraynp object arrayDecimalFractionUncertaintiesstringabsolute °CdBSyntaxComments
scipy.constants2016-03-07 03:52:06http://docs.scipy.org/doc/scipy/reference/constants.html1673852015-10-24Yes 50Yes 400 in CODATANo- no unit objects- no unit objects- no unit objects- no unit objects- no unit objects- no unit objectsNoNoconstants.c == 299792458.0Just tables of numerical constants; unit-aware calculations not supported. scipy.constants.physical_constants specifies units as strings and uncertainties. Could be used to supply other packages with coefficients.
sympy.physics.units2016-03-07 03:52:06http://docs.sympy.org/dev/modules/physics/units.html554242015-09-03Yes 200?Yes- u.mega*u.meter but not u.megameterNoYes array([1, 2, 3])*u.m- converts to sympy- converts to sympycm = u.m/100
Pint2016-05-09 20:40:39https://github.com/hgrecco/pint357462016-03-02YesYesYes Mm, GV, etc.Yes array([1,2,3])*ureg.m or ureg.m*array([1,2,3])No ValueErrorYesYesYes built-inYesYesNoV = 1*ureg.dm**3
astropy.units2016-03-07 03:54:44http://docs.astropy.org/en/stable/units/113582016-01-08YesYesNoYes-YesYes15.1 * u.meter / (32.0 * u.second)
Quantities2016-03-07 03:54:44http://python-quantities.readthedocs.org39172016-02-21Yes array([1,2,3]) * pq.JNo
Units2016-03-07 03:52:06https://bitbucket.org/adonohue/units/13762013-10-28
numericalunits2016-03-07 03:54:44https://pypi.python.org/pypi/numericalunits4452016-02-20Overflow issues, random set of units = not deterministic, need to do calculations twice to confirm they are being done correctly
SciMath Units2016-03-07 03:56:59http://scimath.readthedocs.org/en/latest/units/index.html4302015-11-04Yes built-in
Buckingham2016-03-07 03:56:59https://github.com/mdipierro/buckingham3612016-01-27Yes 53NoYesV = Number(1,dims='decimeter^3')Single file
Unum2016-03-07 03:52:06https://bitbucket.org/kiv/unum3342015-01-27
natu2016-03-07 03:52:06http://kdavies4.github.io/natu/3152014-08-08YesYes 40YesYes m*array([1, 2, 3])Yes array([1, 2, 3])*mNoNoYesNoYesYesV = 1*dm**3weird format for dB, Hz != 1/s
misu2016-03-07 03:52:06https://github.com/cjrh/misu308
Magnitude2016-03-07 03:52:06http://juanreyero.com/open/magnitude/238YesYesYes
udunitspy2016-03-07 03:52:06https://github.com/blazetopher/udunitspy/188Python wrapper for UDUNITS2
DimPy2016-03-07 03:52:06http://www.inference.phy.cam.ac.uk/db410/0
Scalar2016-03-07 03:52:06http://russp.us/scalar-python.htm02008-03-18
ScientificPython PhysicalQuantities2016-03-07 03:52:06http://dirac.cnrs-orleans.fr/ScientificPython/ScientificPythonManual/Scientific.Physics.PhysicalQuantities-module.html0
Embed
  • 2016-03-06 19:38:38
    2016-05-09 20:40:39
  • Frameworks
    English
  • this is an excerpt
  • Public
    Public
  • Creative Commons License CC-BY-SA 3.0 / GNU FDL
    Manage backups

Comments

No comments yet. Be the first to give your opinion.

Leave a comment

Build comparison tables or lists about everything !

It's free and fast to publish data into original tables

Create a table