From bb16ddc95d36a5b32558377e9a79e8b575aabc35 Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 25 Feb 2022 20:32:00 -0500 Subject: [PATCH] WebSocket interface (#20) * New WebSocket interface * Fixed code execution when using Nuke Internal for Python2 --- CHANGELOG.md | 10 +- README.html | 96 +++++++---- README.md | 32 ++-- poetry.lock | 168 ++++++++++--------- pyproject.toml | 2 +- src/_nuke.py | 15 +- src/about.py | 2 +- src/connection/nss_client.py | 80 ++++----- src/connection/nss_server.py | 10 +- src/connection/nss_socket.py | 152 ++++++++++++----- src/controllers/nuke_controllers.py | 17 +- src/logger.py | 4 +- src/utils/settings.py | 2 - src/widgets/settings_widget.py | 29 +++- tests/connections/test_connection_classes.py | 35 ++++ tests/connections/test_is_connected.py | 4 +- tests/connections/test_is_websocket.py | 51 ++++++ tests/connections/test_send_nodes.py | 18 ++ tests/controllers/test_code_editor.py | 21 ++- tests/test_options_names.py | 2 +- 20 files changed, 503 insertions(+), 247 deletions(-) create mode 100644 tests/connections/test_connection_classes.py create mode 100644 tests/connections/test_is_websocket.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab23f46..d35a8cb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,18 @@ # Changelog -## [0.4.1] - 2022-06-18 +## [0.5.0] - 2022-02-24 + +### Added + +* New WebSocket connection type. + +## [0.4.1] - 2022-02-18 ### Added * New settings to switch che code execution engine. -## [0.4.0] - 2022-06-17 +## [0.4.0] - 2022-02-17 ### Added diff --git a/README.html b/README.html index 97516671..354cfec2 100644 --- a/README.html +++ b/README.html @@ -17,30 +17,34 @@ : 'default' }); -

Changelog

-

v0.4.1 2022-02-18

-
  • Switch code execution engine settings.
  • +

    Changelog

    +

    v0.5.0 2022-02-25

    +
  • WebSocket communication protocol for browser-based text editors.
  • -

    v0.4.0 2022-02-17

    -
  • Intercept exceptions inside Nuke's thread to extension output.
  • -
  • Configurable timeout settings.
  • -
  • Display timeout timers in UI.
  • +

    v0.4.1 2022-02-18

    +
  • Switch code execution engine settings.
  • -

    v0.3.0 2022-02-06

    -
  • Various fixes and optimizations for code execution.
  • +

    v0.4.0 2022-02-17

    +
  • Intercept exceptions inside Nuke's thread to extension output.
  • +
  • Configurable timeout settings.
  • +
  • Display timeout timers in UI.
  • -

    v0.2.0 2021-10-29

    -
  • Connections timeouts.
  • -
  • Various fixes and optimizations.
  • - -

    v0.1.0 2021-09-23

    -
  • Execute BlinkScript code.
  • -
  • Send/Receive Nodes from another instance.
  • -
  • New About widget.
  • -
  • API now accepts also simple strings when sending a request.
  • -
  • Under the hood optimizations.
  • +

    v0.3.0 2022-02-06

    +
  • Various fixes and optimizations for code execution.
  • + +

    v0.2.0 2021-10-29

    +
  • Connections timeouts.
  • +
  • Various fixes and optimizations.
  • + +

    v0.1.0 2021-09-23

    +
  • Execute BlinkScript code.
  • +
  • Send/Receive Nodes from another instance.
  • +
  • New About widget.
  • +
  • API now accepts also simple strings when sending a request.
  • +
  • Under the hood optimizations.
  • 1. NukeServerSocket README

    +

    Main Build 1. NukeServerSocket README

    x x

    -

    A Nuke plugin that will allow code execution from the local network and more.

    +

    A Nuke plugin that will allow code execution from the local network via TCP/WebSocket connections and more.

    -

    1.1. Tools

    -

    Tools that are using NukeServerSocket:

    +

    1.1. Client applications

    +

    Client applications that can use NukeServerSocket:

    1.2. Features

    1.3. Installation

    Save the plugin in your .nuke directory or in a custom directory and then @@ -158,6 +160,24 @@

    1.4.2.2. Receive

    1.5. Settings

    The settings can be accessed from the plugin toolbar