Skip to content

Releases: labthings/labthings-fastapi

v0.1.0-rc1

05 Mar 17:12
6a1a5fc

Choose a tag to compare

v0.1.0-rc1 Pre-release
Pre-release

This is a release candidate to let us test v0.1.0 before releasing. It introduces one new feature (the ability to set the log level on thing loggers) and drops a large amount of deprecated code.

What's Changed

Full Changelog: v0.0.17...v0.1.0-rc1

v0.0.17

03 Mar 11:48
517dc8e

Choose a tag to compare

This is a small bugfix release: it removes __set__ from ActionDescriptor so that it returns to being a "non-data descriptor". This doesn't change LabThings in normal use, but it makes certain things easier in testing.

What's Changed

  • Move __set__ from BaseDescriptor to FieldTypedBaseDescriptor by @rwb27 in #274
  • Version bump by @rwb27 in #276

Full Changelog: v0.0.16...v0.0.17

v0.0.16

02 Mar 09:53
1981383

Choose a tag to compare

This release tidies up quite a few things internally, and adds some new features. It replaces v0.0.15 which introduced a bug that has now been fixed in #269.

New features

  • URLs can now be generated when models are serialised (#242). This will allow actions and properties to include URLs that refer to Things.
  • Actions can now get a copy of their logs (#260).
  • The Thing Description now includes the readOnly field for properties (#262).

What's Changed

  • URLFor class to generate URLs at serialisation time by @rwb27 in #242
  • Loosen timing tolerances by @rwb27 in #251
  • Use a _set_ prefix on property setters. by @rwb27 in #249
  • Fix a failing unit test on Windows by @rwb27 in #250
  • Make BaseDescriptor generic wrt the owning class by @rwb27 in #254
  • Make use of url_for_middleware to tidy up Blob and Invocation URLs by @rwb27 in #244
  • Allow an action to get a copy of the logs raised during the action. by @julianstirling in #260
  • Easier access to metadata and other features of properties/actions by @rwb27 in #258
  • Add application configuration that propagates to Things by @julianstirling in #261
  • Fix a race condition in test_logs by @rwb27 in #266
  • Bump version number for v0.0.15 release by @julianstirling in #267
  • Propagate read-only metadata to the Thing Description. by @rwb27 in #262
  • Make loading settings robust to subscripted generics. by @julianstirling in #269
  • Version bump by @rwb27 in #272

Full Changelog: v0.0.14...v0.0.16

v0.0.15

26 Feb 00:30
31c06ec

Choose a tag to compare

This release introduced a bug with loading settings, and has been yanked from PyPI. All PRs below are described in release notes for v0.0.16.

This release tidies up quite a few things internally, and adds some new features.

New features

  • URLs can now be generated when models are serialised (#242). This will allow actions and properties to include URLs that refer to Things.
  • Actions can now get a copy of their logs (#260).
  • The Thing Description now includes the readOnly field for properties (#262).

What's Changed

  • URLFor class to generate URLs at serialisation time by @rwb27 in #242
  • Loosen timing tolerances by @rwb27 in #251
  • Use a _set_ prefix on property setters. by @rwb27 in #249
  • Fix a failing unit test on Windows by @rwb27 in #250
  • Make BaseDescriptor generic wrt the owning class by @rwb27 in #254
  • Make use of url_for_middleware to tidy up Blob and Invocation URLs by @rwb27 in #244
  • Allow an action to get a copy of the logs raised during the action. by @julianstirling in #260
  • Easier access to metadata and other features of properties/actions by @rwb27 in #258
  • Add application configuration that propagates to Things by @julianstirling in #261
  • Fix a race condition in test_logs by @rwb27 in #266
  • Bump version number for v0.0.15 release by @julianstirling in #267
  • Propagate read-only metadata to the Thing Description. by @rwb27 in #262

Full Changelog: v0.0.14...v0.0.15

v0.0.14

09 Jan 16:08
dafb8f9

Choose a tag to compare

This is another primarily bugfix release that focuses on fixing certain return types over HTTPs, and reporting errors back to the user more clearly.

What's Changed

Full Changelog: v0.0.13...v0.0.14

v0.0.13

15 Dec 22:11
403ceca

Choose a tag to compare

This is primarily a bug fix release, because v0.0.12 had broken URLs in the thing descriptions endpoint. It also adds a feature to the thing server interface and improves error handling when attempting to import Things from broken modules.

What's Changed

Full Changelog: v0.0.12...v0.0.13

v0.0.12

09 Dec 17:09
794c402

Choose a tag to compare

What's Changed

This release includes significant tidying-up of both the codebase and the documentation, as well as a significant change, which is the move away from using FastAPI dependencies in Thing code.

Updating to v0.0.12 will require migration for Things written using previous versions of LabThings. Most old features are deprecated rather than removed, so it should be possible to migrate code gradually (except for the renamed lt.thing_action and lt.fastapi_endpoint which have had their prefixes removed). See the discussion in #194 for more details.

A full list of changes is below, in the form of pull requests merged since the last release.

New Contributors

Full Changelog: v0.0.11...v0.0.12

v0.0.11

24 Jul 11:25
3c08ea5

Choose a tag to compare

What's changed

  • A significant overhaul of the documentation, including full docstring coverage and several new overview pages (#138).
  • Fix an issue that caused errors if Blob objects were present when action invocations were listed (#144).
  • Improve spelling of documentation (#149).

Full Changelog: v0.0.10...v0.0.11

v0.0.10

07 Jul 12:11
034ea9a

Choose a tag to compare

What's Changed

  • A considerable update to the package documentation (#106)
  • An overhaul of Thing Settings to be a subclass of Thing Properties (rather than a dictionary) and to save on set. (#110)
  • Rename the Descriptor PropertyDescriptor to ThingProperty and crate matching ThingSetting (also #110)
  • Remove the need to install server packages with optional [server] argument on install (#123)
  • Considerable overhaul of the Python API by allowing import labthings-fastapi as lt which should simplify imports. (mostly #121, tweaked in #134)
  • Retired the FileManager as blobs are used for file transfer now (#130)
  • Formatting improvements to fallback server (#129)
  • Ability to set the HTML code of the fallback server (also #129)
  • MJPEG stream is now easier to stop, plus also has better test coverage (#131)

Full Changelog: v0.0.9...v0.0.10

v0.0.9

09 Jun 13:47
7e82c45

Choose a tag to compare

What's Changed

  • Build system changed to hatch from setuptools to make it easier to include non-python files in distribution
  • Fix spelling error in fallback server
  • Logging message fro deleting expired invocations is changed to debug level to reduce logging noise in applications
  • The default argument parser for the CLI can be returned so that downstream programs can add CLI arguments to the parser if needed.

Full Changelog: v0.0.8...v0.0.9