2011-12-14から1日間の記事一覧

inspect_shell: Pythonプログラムにreplを組込む

https://github.com/amoffat/Inspect-Shell試しにdjangoの開発サーバにシェルを組み込んでみよう。 views.py # -*- coding: utf-8 -*- from django.http import HttpResponse, HttpResponseRedirectdata=dict(msg='OH HAI', inspect_shell_imported=False)de…

furl: 使い易いPythonのURLライブラリ

https://github.com/gruns/furl インストール $ git clone https://github.com/gruns/furl.git $ cd furl $ ls API.md furl.py furl.pyc LICENSE.md README.md tests/setup.pyなどはない。 python2.7以上 python2.6でも使えるようにしたフォーク:https://gi…