- simplify version sourcing
- apply ruff preview recommendations
- datetime: implement
peprock.datetime.Period
- improve type hint
- models: optimize
Unit.symbol
- models: optimize
Measurement.__format__()
- models: optimize
Measurement
- models: implement
Measurement.replace
and optimize code
- models: support
Measurement.__int__()
andMeasurement.__float__()
- models: provide default for
to
argument inMetricPrefix.convert()
- models: improve type hints
- models: optimize return type of private
measurement._normalize_magnitudes()
- models: implement
Measurement
model - models: implement
Unit
model
- use absolute imports only
- models: rename position-only arguments and provide fastpath in
MetricPrefix.convert()
- patterns: implement observer pattern
- itertools: implement
min_and_max()
- typing: implement
typing
package - models: improve type handling in
MetricPrefix.to()
andMetricPrefix.convert()
- models: add
__all__
tometrix_prefix.py
- typing: retire
typing
- itertools: retire
itertools
- models: simplify type annotations
- subclasses: leverage
peprock.typing.T_co
- models: extract base into constant
- models: remove cache from
MetricPrefix.to()
- models: add missing py.typed marker
- models: implement
peprock.models.MetricPrefix
- turn peprock into namespace package
- datetime: implement constants
peprock.datetime.ONE_MICROSECOND
,peprock.datetime.ONE_MILLISECOND
,peprock.datetime.ONE_SECOND
,peprock.datetime.ONE_MINUTE
,peprock.datetime.ONE_HOUR
,peprock.datetime.ONE_DAY
,peprock.datetime.ONE_WEEK
- datetime: implement
peprock.datetime.ensure_aware()
- datetime: implement
peprock.datetime.is_naive()
andpeprock.datetime.is_aware()
- subclasses: implement
peprock.subclasses.get()
andpeprock.subclasses.get_by_name()