A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser.
PerlでいうところのTest::TCP相当のことをPythonでやるライブラリをPyPIに上げました。ようやくPyPIデビューです。 https://github.com/nekoya/python-tcptest https://pypi.python.org/pypi/tcptest Test::TCPはPerlでテスト時に一時的にサーバを起動したりする処理の基盤となるライブラリです。同等のことをPythonでやるのに適当なものが見当たらなかったので自分で書いたという経緯です。 社内では以前からこの仕組みを使ってテストを書いていたのですが、自社のconfig系のライブラリとの結合を排除して、再構成したものになります。今回こうして公開するにあたって、関数名をオリジナルのPerl版に近付けたり、TestServerの実装を全面的に見直したりしました。 tcptestパッケージにはTest
RiakはBashoが作っているキーべリューストレージ (KVS) システム。せっかくRiak Meetup Tokyoに参加しているっていうことをきっかけにして、RiakをPythonから使ってみよう。 インストールなど Riakをインストールするにはちょっと面倒くさいことがあるけど、動かしてみると使いやすい。Riakのインストールはここに説明しないけど、僕が以前にRiak Source Code Readingで発表したRiakのインストールと動作の内容を見て頂ければと思います => Let’s りあっくぅ クライアントの準備 RiakをPythonから使う為のクライアントライブラリが用意されています。実際はオープンソースで、GitHubでソースコード見れます。PyPIにも上がっていて、pipで簡単にインストールできます:
pyzmail: Python easy mail library¶ pyzmail is a high level mail library for Python. It provides functions and classes that help for reading, composing and sending emails. pyzmail exists because their is no reasons that handling mails with Python would be more difficult than with popular mail clients like Outlook or Thunderbird. pyzmail hides the complexity of the MIME structure and MIME encoding/d
Wed 31 October 2012 By Dominik Dabrowski In Blog. In my years of programming in Python and roaming around GitHub's Explore section, I've come across a few libraries that stood out to me as being particularly enjoyable to use. This blog post is an effort to further disseminate that knowledge. Please note that I've specifically excluded libraries like sqlalchemy and Flask that are too obviously awe
Pythonのmechanizeでサーバーにアクセスしてレスポンスの取得を試みる場合、成功した場合は200のレスポンスが得られます。一方、404や500のようなエラーに遭遇した場合は、<class 'mechanize._response.httperror_seek_wrapper'>というmechanizeの例外は取得できますが、404や500のようなステータス・コードを取得することができません。 そこで、Pythonのmechanizeで404や500のようなエラーにあった場合に当該のHTTP status codeを取得する方法を書きます。まず、期待通りにエラーのstatus codeを取得できない場合について書きます。 Mechanizeで404や500のステータス・コードを取得できない場合 MechanizeのBrowserのインスタンスのopenメソッドでhttp://pyt
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く