get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/121706/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 121706,
    "url": "https://patches.dpdk.org/api/patches/121706/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230109065547.8819-2-lihuisong@huawei.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230109065547.8819-2-lihuisong@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230109065547.8819-2-lihuisong@huawei.com",
    "date": "2023-01-09T06:55:46",
    "name": "[1/2] usertools: use argparse module to get input parameter",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ad099b96b4e98b16f1610d6dafc2c398def0549c",
    "submitter": {
        "id": 2085,
        "url": "https://patches.dpdk.org/api/people/2085/?format=api",
        "name": "lihuisong (C)",
        "email": "lihuisong@huawei.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230109065547.8819-2-lihuisong@huawei.com/mbox/",
    "series": [
        {
            "id": 26432,
            "url": "https://patches.dpdk.org/api/series/26432/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26432",
            "date": "2023-01-09T06:55:45",
            "name": "usertools: use argparse module to get input and add an argment",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/26432/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/121706/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/121706/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 98FBF42378;\n\tMon,  9 Jan 2023 07:56:23 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 160E142D1E;\n\tMon,  9 Jan 2023 07:56:13 +0100 (CET)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 185BC4067C\n for <dev@dpdk.org>; Mon,  9 Jan 2023 07:56:08 +0100 (CET)",
            "from kwepemm600004.china.huawei.com (unknown [172.30.72.57])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nr4S912QQznVCG;\n Mon,  9 Jan 2023 14:54:33 +0800 (CST)",
            "from localhost.localdomain (10.28.79.22) by\n kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.34; Mon, 9 Jan 2023 14:56:05 +0800"
        ],
        "From": "Huisong Li <lihuisong@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<bruce.richardson@intel.com>, <mb@smartsharesystems.com>,\n <andrew.rybchenko@oktetlabs.ru>, <huangdaode@huawei.com>,\n <liudongdong3@huawei.com>, <fengchengwen@huawei.com>, <lihuisong@huawei.com>",
        "Subject": "[PATCH 1/2] usertools: use argparse module to get input parameter",
        "Date": "Mon, 9 Jan 2023 14:55:46 +0800",
        "Message-ID": "<20230109065547.8819-2-lihuisong@huawei.com>",
        "X-Mailer": "git-send-email 2.22.0",
        "In-Reply-To": "<20230109065547.8819-1-lihuisong@huawei.com>",
        "References": "<20230109065547.8819-1-lihuisong@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.28.79.22]",
        "X-ClientProxiedBy": "dggems703-chm.china.huawei.com (10.3.19.180) To\n kwepemm600004.china.huawei.com (7.193.23.242)",
        "X-CFilter-Loop": "Reflected",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "The telemetry client script uses argparse module to get input parameter.\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\n---\n usertools/dpdk-telemetry-client.py | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py\nindex df41d04fbe..fd69955b32 100755\n--- a/usertools/dpdk-telemetry-client.py\n+++ b/usertools/dpdk-telemetry-client.py\n@@ -6,6 +6,7 @@\n import os\n import sys\n import time\n+import argparse\n \n BUFFER_SIZE = 200000\n \n@@ -115,13 +116,12 @@ def interactiveMenu(self, sleep_time): # Creates Interactive menu within the scr\n if __name__ == \"__main__\":\n \n     sleep_time = 1\n-    file_path = \"\"\n-    if len(sys.argv) == 2:\n-        file_path = sys.argv[1]\n-    else:\n-        print(\"Warning - No filepath passed, using default (\" + DEFAULT_FP + \").\")\n-        file_path = DEFAULT_FP\n+    parser = argparse.ArgumentParser()\n+    parser.add_argument('-s', '--sock_path', default=DEFAULT_FP,\n+                        help='Provide socket file path connected by legacy client')\n+    args = parser.parse_args()\n+\n     client = Client()\n-    client.getFilepath(file_path)\n+    client.getFilepath(args.sock_path)\n     client.register()\n     client.interactiveMenu(sleep_time)\n",
    "prefixes": [
        "1/2"
    ]
}