{"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\/zh-TW\/news\/everything-you-need-to-know-about-sunsetting-opentrons-python-protocol-api-version-1\/","title":{"rendered":"\u95dc\u65bc\u5ee2\u68c4 Opentrons Python \u5354\u5b9a API \u7248\u672c 1 \u60a8\u9700\u8981\u4e86\u89e3\u7684\u4e00\u5207"},"content":{"rendered":"\n

\u96a8\u8457 4.0.0 \u8edf\u9ad4\u7248\u672c\u7684\u767c\u5e03\uff0cOpentrons \u5c07\u4e0d\u518d\u652f\u63f4 Python \u5354\u5b9a API \u7248\u672c 1\u3002\u4ee5\u4e0b\u662f\u60a8\u9700\u8981\u4e86\u89e3\u7684\u8cc7\u8a0a\u3002<\/h3>\n\n\n\n

\u5728\u6211\u5011\u5373\u5c07\u767c\u5e03\u7684 4.0.0 \u8edf\u9ad4\u7248\u672c\u4ee5\u53ca\u672a\u4f86\u7684\u7248\u672c\u4e2d\uff0cOpentrons \u5c07\u4e0d\u518d\u652f\u63f4 Python \u5354\u5b9a API \u7248\u672c 1 (APIv1)\u3002<\/p>\n\n\n\n

\u53bb\u5e74\uff0c\u6211\u5011\u63a8\u51fa\u4e86 Opentrons Python \u5354\u5b9a API (APIv2) \u7b2c 2 \u7248\uff0c\u9019\u662f OT-2 \u6838\u5fc3\u64cd\u4f5c\u8edf\u9ad4\u548c\u5354\u5b9a\u7a0b\u5f0f\u4ecb\u9762\u7684\u91cd\u5927\u66f4\u65b0\uff0c\u63d0\u9ad8\u4e86 Python API \u4f7f\u7528\u8005\u7684\u53ef\u9760\u6027\u548c\u6613\u7528\u6027\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n

\u2014 \u5b9a\u7fa9\u6a5f\u5668\u4eba\u3001\u6a21\u7d44\u548c\u5be6\u9a57\u5ba4\u5668\u5177\u7684\u5e7e\u4f55\u5f62\u72c0\u7684\u8edf\u9ad4\u9032\u884c\u4e86\u91cd\u5927\u66f4\u65b0\uff0c\u78ba\u4fdd\u5354\u8b70\u547d\u4ee4\u7684\u57f7\u884c\u6e96\u78ba\u4e14\u4e00\u81f4\u3002<\/p>\n\n\n\n

\u2014 \u7c21\u5316 OT-2 \u6545\u969c\u6392\u9664\uff0c\u4f7f\u652f\u63f4\u5718\u968a\u66f4\u6e96\u78ba\u5730\u8a3a\u65b7\u548c\u89e3\u6c7a\u554f\u984c\u3002<\/p>\n\n\n\n

\u2014 \u66f4\u65b0\u7684\u5354\u5b9a\u7a0b\u5f0f\u4ecb\u9762\u4f7f API \u66f4\u6613\u65bc\u5b78\u7fd2\u548c\u4f7f\u7528\u3002<\/p>\n\n\n\n

\u81ea APIv2 \u767c\u5e03\u4ee5\u4f86\uff0c\u6211\u5011\u7e7c\u7e8c\u958b\u767c\u4e26\u6dfb\u52a0\u4e86\u529f\u80fd\u548c\u932f\u8aa4\u4fee\u5fa9\uff0c\u5305\u62ec 7 \u500b\u65b0\u7684 API \u5c0f\u7248\u672c\u3001\u5c0d\u65b0\u79fb\u6db2\u5668\u548c\u6a21\u7d44\u7684\u652f\u63f4\u3001\u5c0d\u904b\u52d5\u53c3\u6578\u548c\u79fb\u6db2\u5668\u901f\u5ea6\u7684\u8b8a\u66f4\u3002<\/p>\n\n\n\n

\u4f46\u662f\uff0c\u6211\u5011\u4e0d\u518d\u80fd\u5920\u652f\u63f4\u9019\u5169\u500b API \u7248\u672c\uff0c\u4e26\u4e14\u6b63\u5728\u9077\u79fb\u6211\u5011\u7684\u7cfb\u7d71\u4ee5\u652f\u63f4 APIv2\u3002 \u96d6\u7136\u6dd8\u6c70\u7522\u54c1\u7e3d\u662f\u5f88\u56f0\u96e3\uff0c\u4f46\u9019\u6a23\u505a\u5c07\u4f7f\u6211\u5011\u80fd\u5920\u5c07\u7cbe\u529b\u96c6\u4e2d\u5728\u55ae\u4e00\u5f37\u5927\u3001\u53ef\u9760\u7684\u7522\u54c1\u9ad4\u9a57\u4e0a\u3002<\/p>\n\n\n\n

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

\u5f9e 4.0.0 \u958b\u59cb\uff0cOT-2 \u8edf\u9ad4\u5c07\u4e0d\u518d\u652f\u63f4\u4f7f\u7528 APIv1 \u5efa\u7f6e\u7684\u5354\u5b9a\u3002 \u60a8\u5c07\u7e7c\u7e8c\u80fd\u5920\u4f7f\u7528 OT-2 \u7684\u7576\u524d\u8edf\u9ad4\u7248\u672c\u904b\u884c APIv1 \u5354\u5b9a\u3002<\/p>\n\n\n\n

\u5982\u4f55\u5c07\u5354\u5b9a\u5f9e APIv1 \u66f4\u65b0\u5230 APIv2\uff1a<\/p>\n\n\n\n

\u70ba\u4e86\u78ba\u4fdd\u900f\u904e\u6b64\u66f4\u65b0\u4f7f\u7528 OT-2 \u7372\u5f97\u6700\u4f73\u9ad4\u9a57\uff0c\u6211\u5011\u5efa\u8b70\u76e1\u5feb\u66f4\u65b0\u60a8\u7684 APIv1 \u5354\u5b9a\u3002 \u5c31\u662f\u9019\u6a23\uff1a<\/p>\n\n\n\n