{"id":704,"date":"2020-11-24T10:41:00","date_gmt":"2020-11-24T02:41:00","guid":{"rendered":"https:\/\/opentrons.com.cn\/?p=704"},"modified":"2024-04-29T14:21:50","modified_gmt":"2024-04-29T06:21:50","slug":"everything-you-need-to-know-about-sunsetting-opentrons-python-protocol-api-version-1","status":"publish","type":"post","link":"https:\/\/opentrons.com.cn\/news\/everything-you-need-to-know-about-sunsetting-opentrons-python-protocol-api-version-1\/","title":{"rendered":"\u5173\u4e8e\u5e9f\u5f03 Opentrons Python \u534f\u8bae API \u7248\u672c 1 \u60a8\u9700\u8981\u4e86\u89e3\u7684\u4e00\u5207"},"content":{"rendered":"\n

\u968f\u7740 4.0.0 \u8f6f\u4ef6\u7248\u672c\u7684\u53d1\u5e03\uff0cOpentrons \u5c06\u4e0d\u518d\u652f\u6301 Python \u534f\u8bae API \u7248\u672c 1\u3002\u4ee5\u4e0b\u662f\u60a8\u9700\u8981\u4e86\u89e3\u7684\u4fe1\u606f\u3002<\/h3>\n\n\n\n

\u5728\u6211\u4eec\u5373\u5c06\u53d1\u5e03\u7684 4.0.0 \u8f6f\u4ef6\u7248\u672c\u4ee5\u53ca\u672a\u6765\u7684\u7248\u672c\u4e2d\uff0cOpentrons \u5c06\u4e0d\u518d\u652f\u6301 Python \u534f\u8bae API \u7248\u672c 1 (APIv1)\u3002<\/p>\n\n\n\n

\u53bb\u5e74\uff0c\u6211\u4eec\u63a8\u51fa\u4e86 Opentrons Python \u534f\u8bae API (APIv2) \u7b2c 2 \u7248\uff0c\u8fd9\u662f\u5bf9 OT-2 \u6838\u5fc3\u64cd\u4f5c\u8f6f\u4ef6\u548c\u534f\u8bae\u7f16\u7a0b\u63a5\u53e3\u7684\u91cd\u5927\u66f4\u65b0\uff0c\u63d0\u9ad8\u4e86 Python API \u7528\u6237\u7684\u53ef\u9760\u6027\u548c\u6613\u7528\u6027\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n

\u2014 \u5bf9\u5b9a\u4e49\u673a\u5668\u4eba\u3001\u6a21\u5757\u548c\u5b9e\u9a8c\u5ba4\u5668\u5177\u7684\u51e0\u4f55\u5f62\u72b6\u7684\u8f6f\u4ef6\u8fdb\u884c\u4e86\u91cd\u5927\u66f4\u65b0\uff0c\u786e\u4fdd\u534f\u8bae\u547d\u4ee4\u7684\u6267\u884c\u51c6\u786e\u4e14\u4e00\u81f4\u3002<\/p>\n\n\n\n

\u2014 \u7b80\u5316 OT-2 \u6545\u969c\u6392\u9664\uff0c\u4f7f\u652f\u6301\u56e2\u961f\u80fd\u591f\u66f4\u51c6\u786e\u5730\u8bca\u65ad\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n\n\n\n

\u2014 \u66f4\u65b0\u7684\u534f\u8bae\u7f16\u7a0b\u63a5\u53e3\u4f7f API \u66f4\u6613\u4e8e\u5b66\u4e60\u548c\u4f7f\u7528\u3002<\/p>\n\n\n\n

\u81ea APIv2 \u53d1\u5e03\u4ee5\u6765\uff0c\u6211\u4eec\u7ee7\u7eed\u5f00\u53d1\u5e76\u6dfb\u52a0\u4e86\u529f\u80fd\u548c\u9519\u8bef\u4fee\u590d\uff0c\u5305\u62ec 7 \u4e2a\u65b0\u7684 API \u5c0f\u7248\u672c\u3001\u5bf9\u65b0\u79fb\u6db2\u5668\u548c\u6a21\u5757\u7684\u652f\u6301\u3001\u5bf9\u8fd0\u52a8\u53c2\u6570\u548c\u79fb\u6db2\u5668\u901f\u5ea6\u7684\u66f4\u6539\u3002<\/p>\n\n\n\n

\u4f46\u662f\uff0c\u6211\u4eec\u4e0d\u518d\u80fd\u591f\u652f\u6301\u8fd9\u4e24\u4e2a API \u7248\u672c\uff0c\u5e76\u4e14\u6b63\u5728\u8fc1\u79fb\u6211\u4eec\u7684\u7cfb\u7edf\u4ee5\u652f\u6301 APIv2\u3002 \u867d\u7136\u6dd8\u6c70\u4ea7\u54c1\u603b\u662f\u5f88\u56f0\u96be\uff0c\u4f46\u8fd9\u6837\u505a\u5c06\u4f7f\u6211\u4eec\u80fd\u591f\u5c06\u7cbe\u529b\u96c6\u4e2d\u5728\u5355\u4e00\u5f3a\u5927\u3001\u53ef\u9760\u7684\u4ea7\u54c1\u4f53\u9a8c\u4e0a\u3002<\/p>\n\n\n\n

\u5982\u679c\u60a8\u5c1a\u672a\u4ece APIv1 \u66f4\u65b0\u5230 APIv2\uff1a<\/p>\n\n\n\n

\u4ece 4.0.0 \u5f00\u59cb\uff0cOT-2 \u8f6f\u4ef6\u5c06\u4e0d\u518d\u652f\u6301\u4f7f\u7528 APIv1 \u6784\u5efa\u7684\u534f\u8bae\u3002 \u60a8\u5c06\u7ee7\u7eed\u80fd\u591f\u4f7f\u7528 OT-2 \u7684\u5f53\u524d\u8f6f\u4ef6\u7248\u672c\u8fd0\u884c APIv1 \u534f\u8bae\u3002<\/p>\n\n\n\n

\u5982\u4f55\u5c06\u534f\u8bae\u4ece APIv1 \u66f4\u65b0\u5230 APIv2\uff1a<\/p>\n\n\n\n

\u4e3a\u4e86\u786e\u4fdd\u901a\u8fc7\u6b64\u66f4\u65b0\u4f7f\u7528 OT-2 \u83b7\u5f97\u6700\u4f73\u4f53\u9a8c\uff0c\u6211\u4eec\u5efa\u8bae\u5c3d\u5feb\u66f4\u65b0\u60a8\u7684 APIv1 \u534f\u8bae\u3002 \u5c31\u662f\u8fd9\u6837\uff1a<\/p>\n\n\n\n