{"id":42858,"date":"2023-03-30T05:48:41","date_gmt":"2023-03-29T21:48:41","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=42858"},"modified":"2023-03-30T05:48:41","modified_gmt":"2023-03-29T21:48:41","slug":"python-open-soures","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/python-open-soures.html","title":{"rendered":"\u6700\u53d7\u6b22\u8fce\u7684Python\u5f00\u6e90\u6846\u67b6\u6709\u54ea\u4e9b?"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4eca\u5e74\u5e74\u521d\uff0c\u6709\u4e00\u4ef6\u79d1\u5b66\u754c\u7684\u5927\u4e8b\u513f\u66fe\u5237\u7206\u670b\u53cb\u5708\uff1a\u5f15\u529b\u6ce2\u7684\u53d1\u73b0\u3002\u8fd9\u662fLIGO\u9996\u6b21\u76f4\u63a5\u63a2\u6d4b\u5230\u5f15\u529b\u6ce2\u548c\u9996\u6b21\u89c2\u6d4b\u5230\u53cc\u9ed1\u6d1e\u78b0\u649e\u4e0e\u5e76\u5408\uff0c\u63a2\u6d4b\u5230\u7684\u5f15\u529b\u6ce2\u662f\u753113\u4ebf\u5149\u5e74\u4e4b\u5916\u7684\u4e24\u9897\u9ed1\u6d1e\u5728\u5408\u5e76\u7684\u6700\u540e\u9636\u6bb5\u4ea7\u751f\u7684\uff0c\u7ecf\u8fc713\u4ebf\u5149\u5e74\u7684\u65f6\u7a7a\u65c5\u884c\uff0c\u6700\u540e\u88ab\u7f8e\u56fd\u7684\u201c\u6fc0\u5149\u5e72\u6d89\u5f15\u529b\u6ce2\u5929\u6587\u53f0\u201d(LIGO)\u7684\u4e24\u53f0\u5b6a\u751f\u5f15\u529b\u6ce2\u63a2\u6d4b\u5668\u63a2\u6d4b\u5230\u7684\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u867d\u7136\u540e\u671f\u6709\u4eba\u5bf9\u6b64\u6b21\u201c\u5355\u6b21\u5f15\u529b\u6ce2\u53d1\u73b0\u201d\u4ea7\u751f\u8d28\u7591\uff0c\u4f46\u662f\u5728IT\u5708\uff0c\u5b83\u8fd8\u6367\u706b\u4e86\u4e00\u4e2a\u4e00\u4e2a\u4e1c\u897f\uff1aPython\u3002\u4eca\u5929\u6211\u4eec\u5c31\u6765\u770b\u770b\uff0c\u5728GitHub\u7b49\u5f00\u6e90\u7f51\u7ad9\u4e2d\u6700\u53d7\u6b22\u8fce\u7684Python\u5f00\u6e90\u6846\u67b6\u90fd\u6709\u54ea\u4e9b?<\/p>\n 1.Django<\/strong><\/div>\n Django\u662f\u4e00\u6b3e\u7528Python\u8bed\u8a00\u5199\u7684\u514d\u8d39\u5f00\u6e90\u7684 Python Web\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u9075\u5faa\u6a21\u578b -\u89c6\u56fe-\u63a7\u5236\u5668(MVC)\u7684\u67b6\u6784\u6a21\u5f0f\u3002\u5b83\u662f\u7531\u975e\u8425\u5229Django\u7ef4\u62a4\u8f6f\u4ef6\u57fa\u91d1\u4f1a(DSF)\u548c3\u6761\u6b3eBSD\u8bb8\u53ef\u4e0b\u53ef\u7528\uff0c\u9f13\u52b1\u5feb\u901f\u53d1\u5c55\u548c\u5b9e\u7528\u7684\u8bbe\u8ba1\u3002<\/p>\n
Django\u540c\u65f6\u662f\u4e00\u6b3e\u5728\u6570\u636e\u5e93\u529f\u80fd\u3001\u540e\u53f0\u529f\u80fd\u3001\u672b\u73ed\u7cfb\u7edf\u3001\u7f51\u5740\u5339\u914d\u3001\u7f13\u5b58\u7cfb\u7edf\u7b49\u65b9\u9762\u6709\u201c\u5148\u5929\u201d\u4f18\u52bf\u7684\u5f00\u6e90\u6846\u67b6\u3002\u5b83\u53ef\u4ee5\u901a\u8fc7\u51e0\u884c\u7b80\u5355\u7684\u4ee3\u7801\u5c31\u8ba9\u4f60\u7684\u7f51\u7ad9\u62e5\u6709\u4e00\u4e2a\u5f3a\u5927\u7684\u540e\u53f0\uff0c\u8f7b\u677e\u7ba1\u7406\u4f60\u7684\u5185\u5bb9;\u5f3a\u5927\uff0c\u6613\u6269\u5c55\u7684\u6a21\u677f\u7cfb\u7edf\uff0c\u8bbe\u8ba1\u7b80\u6613\uff0c\u4ee3\u7801\uff0c\u6837\u5f0f\u5206\u5f00\u8bbe\u8ba1\uff0c\u66f4\u5bb9\u6613\u7ba1\u7406;\u5982\u679c\u4e0ememcached\u6216\u5176\u5b83\u7684\u7f13\u5b58\u7cfb\u7edf\u8054\u7528\uff0c\u66f4\u51fa\u8272\u7684\u8868\u73b0\uff0c\u66f4\u5feb\u7684\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n \u540c\u65f6\uff0cDjango\u4e5f\u53ef\u4ee5\u4e0eJython\u8fd0\u884c\u5728\u4efb\u4f55J\u7532\u9aa8\u6587\u7684JAVA EE\u5e94\u7528\u670d\u52a1\u5668\u4e0a;\u5c24\u5176\u5728\u7ba1\u7406\u80fd\u529b\u4e0a\u5341\u5206\u7a81\u51fa\u3002<\/p>\n 2.Twisted<\/strong><\/div>\n Twisted\u662f\u4e00\u6b3e\u4e8b\u4ef6\u9a71\u52a8\u7684\u7f51\u7edc\u7f16\u7a0b\u6846\u67b6\uff0c\u652f\u6301\u8bb8\u591a\u5e38\u89c1\u7684\u4f20\u8f93\u53ca\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u5982TCP\u3001UDP\u3001SSL\/TLS\u3001HTTP\u3001IMAP\u3001SSH\u3001IRC\u4ee5\u53caFTP\u3002\u8fd8\u652f\u6301Unix domain sockets\uff0c\u5728MIT\u8bb8\u53ef\u4e0b\u5e94\u7528\u3002<\/p>\n Twisted\u9644\u5e26\u4e86\u4e00\u4e2a\u53ef\u4ee5web\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u7684WSGI\uff0c\u5b83\u80fd\u591f\u4e3a\u5176\u4ed6Python web\u5e94\u7528\u7a0b\u5e8f\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u7684\u670d\u52a1\u5668\u5b9a\u5236HTTP\u670d\u52a1\u3002<\/p>\n
\u636e\u4e86\u89e3\uff0cTwisted\u8bde\u751f\u4e8e2000\u5e74\u521d\uff0c\u5728\u5f53\u65f6\u7684\u7f51\u7edc\u6e38\u620f\u5f00\u53d1\u8005\u770b\u6765\uff0c\u65e0\u8bba\u4ed6\u4eec\u4f7f\u7528\u54ea\u79cd\u8bed\u8a00\uff0c\u624b\u4e2d\u90fd\u9c9c\u6709\u53ef\u517c\u987e\u6269\u5c55\u6027\u53ca\u8de8\u5e73\u53f0\u7684\u7f51\u7edc\u5e93\u3002\u5982\u4eca\uff0cTwisted\u4f9d\u7136\u5c5e\u4e8e\u4e00\u4e2a\u4e8b\u4ef6\u9a71\u52a8\u578b\u7684\u7f51\u7edc\u5f15\u64ce\uff0c\u8fd9\u91cc\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7531\u5916\u90e8\u4e8b\u4ef6\u6765\u51b3\u5b9a\u3002<\/p>\n 3.Tornado<\/strong><\/div>\n Tornado\u6e90\u610f\u4e3a\u9f99\u5377\u98ce\uff0c\u8fd9\u91cc\u662f\u4e00\u6b3e\u53ef\u6269\u5c55\u7684\uff0c\u975e\u963b\u585e\u7684Web\u670d\u52a1\u5668\uff0c\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u4ee5\u53ca\u5f02\u6b65\u8054\u7f51\u5e93\u3002\u5b83\u6700\u521d\u662f\u5728FriendFeed\u5f00\u53d1(\u57282009\u5e74\u88abFacebook\u6536\u8d2d)\u3002Tornado\u662f\u9ad8\u5ea6\u7075\u6d3b\uff0c\u4e13\u95e8\u8bbe\u8ba1\u4e3a\u5f00\u53d1\u4eba\u5458\u548c\u7b2c\u4e09\u65b9\u5de5\u5177\u5382\u5546\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f00\u653e\u73af\u5883\u3002\u5df2\u6709\u90e8\u5206\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u53ef\u4ee5\u5229\u7528\u5e76\u9644\u5e26\u53c2\u8003\u4e66\u76ee\uff0c\u5185\u5bb9\u4ece\u5f00\u53d1\u73af\u5883\u63a5\u53e3\u5230\u8fde\u63a5\u5b9e\u73b0\u3002\u53e6\u5916\uff0c\u5b83\u8fd8\u914d\u5907\u4e86\u4e00\u4e2aWSGI\u670d\u52a1\u5668\uff0c\u5176\u4ed6WSGI Python\u5e94\u7528\u7a0b\u5e8f(\u548c\u6846\u67b6)\u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002\u5728\u5f00\u6e90\u548cApache 2.0\u8bb8\u53ef\u4e0b\u53ef\u7528\u3002<\/p>\n
\u6709\u5f00\u53d1\u8005\u8ba4\u4e3a\uff0cTornado\u65e2\u662f\u4e00\u4e2aweb server\uff0c\u4e5f\u662fweb framework\u3002\u800c\u5b83\u4f5c\u4e3aweb server \u91c7\u7528\u7684\u662fasynchronous IO\u7684\u7f51\u7edc\u6a21\u578b\uff0c\u8fd9\u662f\u4e00\u79cd\u5f88\u9ad8\u6548\u7684\u6a21\u578b\u3002Tornado\u4f5c\u4e3aweb server\uff0c\u63d0\u4f9b\u4e86web framework\u7684api\uff0c\u53ef\u4ee5\u6765\u76f4\u63a5\u6784\u5efa\u81ea\u5df1\u7684web\u7a0b\u5e8f\u3002<\/p>\n \u81ea\u4ece2009\u5e749\u670810\u65e5\u53d1\u5e03\u4ee5\u6765\uff0cTornadoTornado\u5df2\u7ecf\u83b7\u5f97\u4e86\u5f88\u591a\u793e\u533a\u7684\u652f\u6301\uff0c\u5e76\u4e14\u5728\u4e00\u7cfb\u5217\u4e0d\u540c\u7684\u573a\u5408\u5f97\u5230\u5e94\u7528\u3002\u9664FriendFeed\u548cFacebook\u5916\uff0c\u8fd8\u6709\u5f88\u591a\u516c\u53f8\u5728\u751f\u4ea7\u4e0a\u8f6c\u5411Tornado\uff0c\u5305\u62ecQuora\u3001Turntable.fm\u3001Bit.ly\u3001Hipmunk\u4ee5\u53caMyYearbook\u7b49\u3002<\/p>\n \u9664\u4e86\u4ee5\u4e0a\u4e09\u79cd\u4e4b\u5916\uff0c\u8fd8\u6709Diesel\u3001Flask\u3001Cubes\u3001Kartograph\u3001Pulsar\u3001Web2py\u3001Falcon\u3001DPark\u3001Buildbot\u3001Zerorpc\u3001Bottle\u3001webpy\u3001Scrapy\u8fd8\u6709\u5f88\u591a\u7528\u4e8e\u673a\u5668\u5b66\u4e60\u5e94\u7528\u573a\u666f\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u7b14\u8005\u5728\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u4ecb\u7ecd\u4e86\u3002<\/p>\n \n |