Releases: aquariumbio/pydent
Releases · aquariumbio/pydent
Version 1.0.11
Improves compatibility with pfish by allowing for creation of sample types independent of operation types.
Pydent version 1.0.8
Includes the following fixes:
- The logging level set is now not reset to a lower level.
- get_field_types can now filter by role.
We recommend that you use Pydent from pypi.org
v1.0.4
Adds methods for retrieving sample and object type information
Trident version 1.0.0
This release includes major changes from version 0.0.35.
It includes the changes described in the v0.1.2-alpha pre-release
Prerelease v0.1.2-alpha
Major changes
- Planner class - a convenience class creating and editing plans in Aquarium.
Browser
- a convenience class for browsing Samples and other models. Includes caching and query bundling to reduce
number of queries and increase script speed.- new queries (one, last, first)
- removed requirement of Marshmallow serialization/deserialization dependency, replaced by faster code
- Removed
marshmallow
as a serialization/deserialization library. A custom library is now used that avoids unnecessary
field validation. As a result, modelload
anddump
is many fold faster.
Minor changes
- Continuous validation - Cannot set Nested/Relationship attributes to arbitrary values. E.g.
sample_type.sample = 5
will raise an Exception, but settingsample_type.sample = mysample
will not.sample_type.sample = mysample
will also automatically set thesample_id
attribute, since this is defined in the HasOne relationship as an attribute_key. But settingsample_type.sample.id = 5
will not change thesample_id
key.
- setting
None
will no longer trigger a query attempt. In previous versions, a relationship whose value was set toNone
would intialize a query attempt anytimegetattr
accessed a model attribute, using round-about exception handling to avoid errors; this made it impossible to set a relationship attribute toNone.
Now, a query will only be initiated if the key does not exist in the models underlying data. This means that data received from Aquarium will be used as expected (i.e. setting{"sample": None}
will not try to initiate a query next timemodel.sample
is called).FieldValue.set_value
now handles None values. In previous version, None values passed into set_field_value would be ignored, making it difficult to reset a FieldValue. For examplefield_value.set_value(sample=None)
will now reset the sample value for the FieldValue instead of being ignored.
primary_key
will return anid
. Ifid==None
, then therid
is returned (e.g.rid1023
)HasOne
relationship will automatically set the corresponding model reference when setting attributes. E.g.sample.sample_type = myst
will also automatically setsample.sample_type_id = myst.id
since this is defined in theHasOne
field. Similar tracking is not implemented for other relationships.
Developer changes
poetry
https://poetry.eustace.io/ now used as the package manager, replacing pipenv- vcrpy` is used to cache and store queries for deterministic testing.
- Improved documentation.
v0.0.35
Pydent v0.0.34
This release adds name
, size
and job
methods to the Upload
class.
Pydent 0.0.33
- Fixes several bugs, especially those related to field_values and plans
- Features new Planner class to make Aquarium planning easier. This class is located in pydent.planner
Pydent 0.0.32
Updates to sample properties
Pydent 0.0.31
Fixes several issues with Sample properties