Releases: PainterQubits/paramdb
Releases · PainterQubits/paramdb
v0.15.2
v0.15.1
v0.15.0
Added
- Added
ParamDB.__repr__()
for better debugging.
Changed
ParamDB.commit()
now has araw_json
option, allowing a raw JSON string to be committed to the database.- Updated the underlying JSON representation to be more self-describing; see
ParamDB.load()
for the new format specification.
v0.14.0
Changed
- The option
decode_json
inParamDB.load()
was replaced withraw_json
, which allows loading the raw JSON string from the database. - The order of data for
ParamData
objects in the underlying JSON representation was changed; seeParamDB.load()
for the new order.
Removed
ParamDBKey.WRAPPER
was removed in favor of encoding these values usingParamDBKey.PARAM
with a class name ofNone
.
v0.13.0
Added
- The timestamps of non-
ParamData
children are now tracked internally and can be accessed via the new methodParamData.child_last_updated()
. - The class
ParamDBKey
contains the keys used in the JSON representation of a commit.
Changed
ParamDict
dot notation now treates names of existing attributes and names of class type annotations as attributes (rather than treating all names beginning with underscores as attributes).- The JSON format of a commit has been changed, as specified in the docstring for
ParamDB.load()
. ParamData.to_dict()
andParamData.from_dict()
have been replaced byParamData.to_json()
andParamData.from_json()
.
Removed
- Parameter primitive classes have been replaced by the new timestamp tracking.
v0.12.0
Added
- If Pydantic is installed, parameter data classes automatically have Pydantic type validation enabled.
- Parameter primitives classes
ParamInt
,ParamFloat
,ParamBool
,ParamStr
, andParamNone
. - Parameter file classes
ParamFile
andParamDataFrame
.
Changed
- All
ParamData
objects now internally track the latest time that they or any of their children were last updated, which is returned byParamData.last_updated
. Param
andStruct
are combined into a single classParamDataclass
.
v0.11.0
Added
ParamDB.load_commit_entry()
loads a commit entry by ID or the most recent commit.ParamDB.commit_history_with_data()
to retrieve the commit history with data.CommitEntryWithData
to store a commit entry containing data.
Changed
ParamDB.commit()
returns aCommitEntry
instead of the commit ID.
Removed
ParamDB.latest_commit
is replaced byParamDB.load_commit_entry()