WSGi Middlewar公司
wsgihatenaauth的Python项目详细描述
使用hatena auth api授权的wsgi中间件。
- 用法:
来自wsgiref.simple_server import make_server,demo_app 从wsgihatenauth导入hatenauthhandler
APIKEY=YourHatenaAuthAPIKEY secret=yourhatauthenauthsercretkey
app=hatenauthhandler(apikey=apikey,secret=secret)(演示应用程序) httpd=make_服务器('',8000,应用程序) httpd.serve_forever()