Skip to content

Releases: aquariumbio/pydent

Version 1.0.11

18 Jul 23:04
Compare
Choose a tag to compare

Improves compatibility with pfish by allowing for creation of sample types independent of operation types.

Pydent version 1.0.8

26 Mar 18:32
Compare
Choose a tag to compare

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

11 Dec 19:24
Compare
Choose a tag to compare
Adds methods for retrieving sample and object type information

Trident version 1.0.0

19 Jun 14:54
Compare
Choose a tag to compare

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

20 Jun 00:25
Compare
Choose a tag to compare
Pre-release

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, model load and dump 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 setting sample_type.sample = mysample will not.
    • sample_type.sample = mysample will also automatically set the sample_id attribute, since this is defined in the HasOne relationship as an attribute_key. But setting sample_type.sample.id = 5 will not change the sample_id key.
  • setting None will no longer trigger a query attempt. In previous versions, a relationship whose value was set to None would intialize a query attempt anytime getattr accessed a model attribute, using round-about exception handling to avoid errors; this made it impossible to set a relationship attribute to None. 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 time model.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 example field_value.set_value(sample=None) will now reset the sample value for the FieldValue instead of being ignored.
  • primary_key will return an id. If id==None, then the rid 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 set sample.sample_type_id = myst.id since this is defined in the HasOne 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

21 Jan 21:44
Compare
Choose a tag to compare

Minor release to add Job.status method.

Pydent v0.0.34

21 Sep 23:37
Compare
Choose a tag to compare

This release adds name, size and job methods to the Upload class.

Pydent 0.0.33

21 Sep 21:44
Compare
Choose a tag to compare
Pydent 0.0.33 Pre-release
Pre-release
  • 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

14 Sep 23:14
Compare
Choose a tag to compare
Pydent 0.0.32 Pre-release
Pre-release

Updates to sample properties

Pydent 0.0.31

14 Sep 23:01
d83deea
Compare
Choose a tag to compare
Pydent 0.0.31 Pre-release
Pre-release

Fixes several issues with Sample properties