This is a tool used to enable tracing dynamically and provide a call graph in real-time for a python model. I created it because debugging was way too painful for me. Instructions are in the tools/tracer.py file. Example is in example.py (with instructions in the comment). The output of the tracer includes: functions called (relative path) calling function exceptions in red It does not include sys
RiakはBashoが作っているキーべリューストレージ (KVS) システム。せっかくRiak Meetup Tokyoに参加しているっていうことをきっかけにして、RiakをPythonから使ってみよう。 インストールなど Riakをインストールするにはちょっと面倒くさいことがあるけど、動かしてみると使いやすい。Riakのインストールはここに説明しないけど、僕が以前にRiak Source Code Readingで発表したRiakのインストールと動作の内容を見て頂ければと思います => Let’s りあっくぅ クライアントの準備 RiakをPythonから使う為のクライアントライブラリが用意されています。実際はオープンソースで、GitHubでソースコード見れます。PyPIにも上がっていて、pipで簡単にインストールできます:
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol including RabbitMQ's extensions. Supports Python 3.7+ (1.1.0 was the last version to support 2.7) Since threads aren't appropriate to every situation, it doesn't require threads. Pika core takes care not to forbid them, either. The same goes for greenlets, callbacks, continuations, and generators. An instance of Pika's built-in connec
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
28.12. inspect — 使用中オブジェクトの情報を取得する¶ バージョン 2.1 で追加. inspect は、モジュール・クラス・メソッド・関数・トレースバック・フレームオブジェクト・コードオブジェクトなどのオブジェクトから情報を取得 する関数を定義しており、クラスの内容を調べる、メソッドのソースコードを取得する、関数の引数リストを取得して整形する、トレースバックから必要な情報 だけを取得して表示する、などの処理を行う場合に利用します。 このモジュールの機能は、型チェック・ソースコードの取得・クラス/関数から情報を取得・インタープリタのスタック情報の調査、の4種類に分類する事ができます。 28.12.1. 型とメンバ¶ getmembers() は、クラスやモジュールなどのオブジェクトからメンバを取得します。名前が”is”で始まる 16 個の関数は、 getmembers()
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く