Comparateur de taille
S'inscrire
English

Python units/quantities packages

2
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.
Lien
Site webPyPI DLs/monthGitHub StarsUsed byBuilt-in unitsBuilt-in constantsArbitrary prefixesnp scalar arraynp object arrayDecimalFractionUncertaintiesstringabsolute °CdBSyntaxeCommentaires
scipy.constantsscipy.org/...167 3857 087181 360Oui 50Oui 400 in CODATANon- no unit objects- no unit objects- no unit objects- no unit objects- no unit objects- no unit objectsNonNonconstants.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.unitssympy.org/...55 4246 92418 324Oui 200?Oui- u.mega*u.meter but not u.megameterNonOui array([1, 2, 3])*u.m- converts to sympy- converts to sympycm = u.m/100
astropy.unitsastropy.org/...11 3582 43513 777OuiOuiNonOui-OuiOui15.1 * u.meter / (32.0 * u.second)
Pintgithub.com/...35 7461 1281 579OuiOuiOui Mm, GV, etc.Oui array([1,2,3])*ureg.m or ureg.m*array([1,2,3])Non ValueErrorOuiOuiOui built-inOuiOuiNonV = 1*ureg.dm**3
unytreadthedocs.io/...24329Oui 101Oui 33Oui km4*m + 3*cm - 5*ft + 6*yard
Quantitiesreadthedocs.org3 917147231Oui array([1,2,3]) * pq.JNon
Unitsbitbucket.org/...1 376
numericalunitspython.org/...44569Overflow issues, random set of units = not deterministic, need to do calculations twice to confirm they are being done correctly
SciMath Unitsreadthedocs.org/...43036Oui built-in
Buckinghamgithub.com/...361200Oui 53NonOuiV = Number(1,dims='decimeter^3')Single file
Unumbitbucket.org/...334
natugithub.io/...315OuiOui 40OuiOui m*array([1, 2, 3])Oui array([1, 2, 3])*mNonNonOuiNonOuiOuiV = 1*dm**3weird format for dB, Hz != 1/s, "pre-release state"
misugithub.com/...308110
Magnitudejuanreyero.com/...2381631OuiOuiOui
udunitspygithub.com/...18820Python wrapper for UDUNITS2
DimPycam.ac.uk/...0
Scalarrussp.us/...0
ScientificPython PhysicalQuantitiescnrs-orleans.fr/...0
Inclure
Compare Python packages for units/quantities conversions
Frameworks
English
Publique
Publique
10 nov. 2022 15:25:54
6 mar. 2016 19:38:38
Voir les modifications
Gérer les sauvegardes

Avis utilisateurs et commentaires

Pas de commentaires pour l'instant. Soyez le premier à laisser votre avis.