From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29E1142EB9; Wed, 19 Jul 2023 16:13:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F7C542D10; Wed, 19 Jul 2023 16:13:12 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 11C22427F5 for ; Wed, 19 Jul 2023 16:13:10 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so11418433e87.3 for ; Wed, 19 Jul 2023 07:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1689775989; x=1690380789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LFdTReZBu+KtiY+0s22o7a7A1yqos7Hmw7I0rKI61lQ=; b=Lg0NgzoY7LxW18mF/UG326Izke5nDR6Frn1I1AUTIA2/7pI3EPDIVoBjpLDnmUT0xN c5OUIRlbrDHvPA8Y0GhUvQjWQjV69b4IntzT3OE/o1S0qiq6ths/MQUxMGMryIJECgJ6 uc0XYOVweIHfTx7ujmnpDyaU5dJ1wY+Es+ROnTW6n+5VCfq0P4b+Yb59jwRwB3reiPsb 7bTpP5HdZncqJYr4OxXprgWU70Azr7u3Xw92unLw6Jckg+YUFF96wccS6ccb6M57xh4Q odyk97KmS7fNMpo7kxKHgkLxno0/8NbOALthCPvdBQ8mupR064dRVJkT10H0kvtMK07k 6rUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689775989; x=1690380789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LFdTReZBu+KtiY+0s22o7a7A1yqos7Hmw7I0rKI61lQ=; b=gUKsb3OvalhqnX3c+6BkSmXQ8lti8Xr7NEXGBvC/Y/llKH+QDnaI4dzqv0pzmUCW// xCKyoNrGt5y0vgg2NFL9/Zwrt7WW3ud5rOp95saCGbboxq4kZRc8xiV8hJ1if6ZFH/Pu FG1GuO1Eczk25Tz9LNCQiXmWyTuMfqukvg+Wv4YP+Z6sH6PzItMlxaKLG8cUg6ydxXb2 YYST5mvyGO+44X4YgC9mwSI1Lpoc0qb2iuRyJAEqnD8fw4pvCYiuXHDZjTf333MvZk9n 1fit9ez5juUevrwaWy6aMLqyTVxrbOiExihW5YzFJMtX7H6rOrW6PMrkHfeoLR4MQXAF x5IA== X-Gm-Message-State: ABy/qLYwVcePM2Ef1HwpGAI80ouj+uV9JAclhwiuCjqjx2Q6gqkZ+Rf+ KCGoJbCSRehDUHUYwGiXydEZ6Q== X-Google-Smtp-Source: APBJJlF0F7bOceEV2mvgfnLS/ZxOaNo1+5akulQ5Mv8+jCZ5S4wdnVw0QGhlmvhK09muzxM7noYqgg== X-Received: by 2002:a19:7b0f:0:b0:4f8:6833:b13c with SMTP id w15-20020a197b0f000000b004f86833b13cmr24751lfc.14.1689775989639; Wed, 19 Jul 2023 07:13:09 -0700 (PDT) Received: from jlinkes-PT-Latitude-5530.. (ip-46.34.247.144.o2inet.sk. [46.34.247.144]) by smtp.gmail.com with ESMTPSA id q8-20020a056402040800b0051e2809395bsm2721979edv.63.2023.07.19.07.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 07:13:08 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, lijuan.tu@intel.com, bruce.richardson@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v3 4/6] dts: add python remote interactive shell Date: Wed, 19 Jul 2023 16:13:01 +0200 Message-Id: <20230719141303.33284-5-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719141303.33284-1-juraj.linkes@pantheon.tech> References: <20230717110709.39220-1-juraj.linkes@pantheon.tech> <20230719141303.33284-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The shell can be used to remotely run any Python code interactively. Signed-off-by: Juraj Linkeš --- dts/framework/remote_session/remote/python_shell.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dts/framework/remote_session/remote/python_shell.py diff --git a/dts/framework/remote_session/remote/python_shell.py b/dts/framework/remote_session/remote/python_shell.py new file mode 100644 index 0000000000..cc3ad48a68 --- /dev/null +++ b/dts/framework/remote_session/remote/python_shell.py @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2023 PANTHEON.tech s.r.o. + +from pathlib import PurePath + +from .interactive_shell import InteractiveShell + + +class PythonShell(InteractiveShell): + _default_prompt: str = ">>>" + _command_extra_chars: str = "\n" + path: PurePath = PurePath("python3") -- 2.34.1