Skip to content

Releases: swimos/swim-system-python

Alpha release 1.5.0-alpha

02 Aug 15:50
1.5.0-alpha
4cbf0dc
Compare
Choose a tag to compare

Changelog:

  1. Downlinks will now reconnect by default when there is a connection failure.
  2. Added keep_linked and keep_synced
...

value_downlink = swim_client.downlink_value()
value_downlink.set_host_uri('ws://localhost:9001/')
value_downlink.set_node_uri('/unit/foo')
value_downlink.set_lane_uri('info')

value_downlink.keep_synced(True)
value_downlink.keep_linked(False)

...
  1. Added method for waiting until all client tasks are completed. The behaviour is modeled after the [Thread.join interface](https://docs.python.org/3/library/threading.html#threading.Thread.join).
    Fred, This should address the problem that you had.
if __name__ == '__main__':
    swim_client = SwimClient()
    swim_client.start()

    event_downlink = swim_client.downlink_event()
    event_downlink.set_host_uri('ws://localhost:9001/')
    event_downlink.set_node_uri('/unit/foo')
    event_downlink.set_lane_uri("publishValue")
    event_downlink.on_event(custom_on_event)
    event_downlink.open()

    # This is used to block the thread until all client tasks have completed
    swim_client.join()

    # Alternatively, a maximum timeout may be provided which will unblock the thread after it has elapsed
    # swim_client.join(timeout=300)
  1. Added custom errors for trying to open a downlink before first setting the host, node or lane.

Alpha release 1.4.0-alpha

27 Jun 19:05
1.4.0-alpha
d6ff8a8
Compare
Choose a tag to compare

Added additional callbacks.

Alpha release 1.3.0-alpha

06 Jun 16:57
1.3.0-alpha
d08a8df
Compare
Choose a tag to compare
Updated the project name to `swimos`.

Alpha release 1.2.0-alpha

05 May 13:29
Compare
Choose a tag to compare

Changelog:

  • Added support for WSS.

Alpha release 1.1.0-alpha

27 Aug 11:26
Compare
Choose a tag to compare

Changelog:

  • Map downlinks now handle updates before sync properly.
  • Removed unnecessary async annotations.

Alpha release 1.0.1-alpha

21 May 10:45
Compare
Choose a tag to compare

Changelog:

  • Added a manifest file to fix the sdist.
  • Fixed new lint issues flagged by the new version of flake8.

Alpha release 1.0.0-alpha

13 Feb 12:12
Compare
Choose a tag to compare

Changelog:

  • Added event downlinks.
  • Added map downlinks.
  • Added Unlinked Response handling with appropriate warnings.
  • Removed the asyncio Executor and added better support for regular functions in the downlink callbacks.
  • Added blocking flag for set method of downlinks, which will ensure the order of set requests.
  • Downlinks to existing connections now display the value of the remote lane when opened.
  • Minor bug fixes for internal status handling of the client, downlinks and connections.
  • Increased unit test coverage to 100% and added missing documentation.
  • Formalised the puclic API of the package.

Development release 0.1.1.dev1

20 Dec 14:57
Compare
Choose a tag to compare
Pre-release

Changelog:

  • Added warp as alias of ws for remote host URIs.
  • Downlinks to the same host, node and lane are now handled by a single downlink model which is accessed through different downlink views.
  • Improved the exception handling and introduced a debug mode for the client that shows the full stack traces.
  • Implemented automatic conversion from primitive data types to recon when used in downlinks.
  • Implemented Python object to recon serializer.
  • Implemented Recon to Python object deserializer.
  • Improved documentation and added type annotations to all methods.
  • Added unit tests to cover all modules.
  • Minor bug fixes.

Development release 0.1.0.dev1

05 Nov 13:51
Compare
Choose a tag to compare
Pre-release

Changelog:

  • Changed the name of the base module to match the package name.
  • Increased code documentation.
  • Removed bugs.

Development release 0.0.3.dev1

30 Oct 13:15
Compare
Choose a tag to compare
Pre-release

Changelog:

  • The client can now be opened using a with statement.
  • Value downlinks now have get method with optional blocking behaviour.
  • Value downlinks now can be closed individually using close() method.
  • The client can now send commands using command() method.
  • Added specialised Bool class in the swim structure module for handling Boolean values.
  • Fixed a bug preventing the rate and priority of Envelopes to be parsed correctly.
  • Improved the support for nested structures in messages.
  • Removed minor bugs.
  • Removed redundant code.
  • Increased stability.