Releases: swimos/swim-system-python
Releases · swimos/swim-system-python
Alpha release 1.5.0-alpha
Changelog:
- Downlinks will now reconnect by default when there is a connection failure.
- Added
keep_linked
andkeep_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)
...
- 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)
- Added custom errors for trying to open a downlink before first setting the host, node or lane.
Alpha release 1.4.0-alpha
Added additional callbacks.
Alpha release 1.3.0-alpha
Updated the project name to `swimos`.
Alpha release 1.2.0-alpha
Changelog:
- Added support for WSS.
Alpha release 1.1.0-alpha
Changelog:
- Map downlinks now handle updates before sync properly.
- Removed unnecessary async annotations.
Alpha release 1.0.1-alpha
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
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 ofset
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
Changelog:
- Added
warp
as alias ofws
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
Changelog:
- Changed the name of the base module to match the package name.
- Increased code documentation.
- Removed bugs.
Development release 0.0.3.dev1
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
andpriority
of Envelopes to be parsed correctly. - Improved the support for nested structures in messages.
- Removed minor bugs.
- Removed redundant code.
- Increased stability.