Releases

Latest development release:
Version: 2.10.1
Released: 2020-03-04
  • Dropping support for all versions of Python older than 3.5.
2.10 (2020-03-2):
2.9 (2020-01-28):
2.8 (2020-01-08):
  • Fix nit in installer (setup.py).
2.7 (2019-12-17):
  • improve the ability of both quantiphy.Quantity.add() and quantiphy.Quantity.scale() to retain attributes.
  • added accept_binary preference.
  • support all preferences as class attributes.
  • allow radix and comma to be replaced by adding radix and comma preferences.
2.6 (2019-09-24):
2.5 (2019-01-16):
2.4 (2018-09-12):
  • fixed bug in format that resulted in several format codes ignoring width
  • follow Python convention of right-justifying numbers by default.
  • add Quantity.add() (adds a number to a quantity returning a new quantity)
  • added # alternate form of string formatting.
  • change show_si to form (argument on quantiphy.Quantity.set_prefs() and quantiphy.Quantity.render() (show_si is now obsolete, use form=’si’ instead).
  • added concept of equivalent units for unit conversion to documentation.
  • enhance UnitConversion so that it supports nonlinear conversions.
2.3 (2018-03-11):
2.2 (2017-11-22):
2.1 (2017-07-30):

The primary focus of this release was on improving the documentation, though there are a few small feature enhancements.

  • added support for SI standard composite units
  • added support for non-breaking space as spacer
  • removed constraint in quantiphy.Quantity.extract() that names must be identifiers
2.0 (2017-07-15):

This is a ‘coming of age’ release where the emphasis shifts from finding the right interface to providing an interface that is stable over time. This release includes the first formal documentation and a number of new features and refinements to the API.

  • created formal documentation
  • enhanced label_fmt to accept {V}
  • allow quantity to be passed as value to quantiphy.Quantity
  • replaced Quantity.add_to_namespace with quantiphy.Quantity.extract()
  • raise NameError rather than AssertionError for unknown preferences
  • added quantiphy.Quantity.all_from_conv_fmt() and quantiphy.Quantity.all_from_si_fmt()
  • change assign_rec to support more formats
  • changed Constant() to quantiphy.add_constant()
  • changed the way preferences are implemented
  • changed name of preference methods: set_preferencesset_prefs, get_preferenceget_pref
  • added quantiphy.Quantity.prefs() (preferences context manager)
  • split label_fmt preference into two: label_fmt and label_fmt_full
  • added show_desc preference
  • allow show_label to be either ‘a’ or ‘f’ as well True or False
  • renamed strip_dp option to strip_radix
  • added number_fmt option
1.3 (2017-03-19):
  • reworked constants
  • added unit systems for physical constants
1.2 (2017-02-24):
  • allow digits after decimal point to be optional
  • support underscores in numbers
  • allow options to be monkey-patched on to Quantity objects
  • add strip_dp option
  • fix some issues in full precision mode
  • ranamed some options, arguments and methods
1.1 (2016-11-27):
  • added known_units preference.
  • added get_preference class method.
1.0 (2016-11-26):
  • initial production release.