You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Python Conference Japan 2012 に行ってきました. Mosky Liuさんが発表してたClimeという,pythonの関数をCLIプログラムに変換するモジュールがとても良かった.かなり簡単にCLIプログラムが作れちゃう.講演はここ. docstringに関数のオプションを記述するだけで,それがそのまま関数の引数にマップされる. わざわざ,getoptで引数処理を書いたり,usage()を記述する必要がない.結構,引数処理で振る舞いを変化させるような関数を書くことが多いのでこれは便利と思った.特に解析系のプログラムを書くときなどは重宝するのではかと. まずインストールは 例えば,STRINGをN回表示する関数repeat()をrepeat.pyに作成する. STRINGをコマンドラインから渡し,-n (–time) Nとして表示回数Nを指定する.そして,-f (
# vim:syn=rst: ======================================== UCLTIP - Use command line tool in Python ======================================== This library makes you use command line tool in Python more easier. The original idea are from GitPython project `http://pypi.python.org/pypi/GitPython/` The basic concept is to transform: 1) command as a instance, 2) command options as arguments or function/met
phpsh -- An interactive shell for php phpsh is an interactive shell for php that features readline history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license. If you don't have --with-readline and --with-libedit compiled into your PHP binary but you do have Python2.4 i
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く