あるプロジェクトの依存は特定なバージョンじゃないとダメな場合が結構多いと思いますけど、最近、pythonの仮想環境を簡単に作れるようになりました。virtualenv と virtualenvwrapper と pip の組み合わせを紹介します。 virtualenvは環境を作ってくれるライブラリで、virtualenvwrapperはその作った環境を簡単に管理してくれるツールになります。 まず、virtualenv と virtualenvwrapper をインストール.
Programming Languages Google's Python Class This is a complete online introduction to Python programming, including writen materials, lecture videos, and coding exercises. The class is geared for people with a little bit of programming experience, and is used within google to introduce Python. Below are video-taped lectures from Google Video on various technology areas. These videos are great oppo
概要¶ これは Google Python Style Guide Revision 2.29 を日本語に訳したものです。 本家ガイドは CC-By 3.0 ライセンス の基で公開されています。また、本ガイドも同ライセンスを継承します。 本家ガイドの著者は以下の通りです。 Amit Patel Antoine Picard Eugene Jhong Jeremy Hylton Matt Smart Mike Shields また、本ガイドの翻訳者は以下の通りです。 Kosei Kitahara 本ガイドに誤植、誤訳があった場合は issue で教えてください。 その他本ガイドに関する問い合わせは、サイト最下部に記載のメールアドレスか @Surgo にお願いします。 はじめに¶ Python は Google で使われている主要なスクリプト言語です。 このスタイルガイドは Python によ
2. Using the Python Interpreter¶ 2.1. Invoking the Interpreter¶ The Python interpreter is usually installed as /usr/local/bin/python3.13 on those machines where it is available; putting /usr/local/bin in your Unix shell’s search path makes it possible to start it by typing the command: to the shell. [1] Since the choice of the directory where the interpreter lives is an installation option, other
前々から勉強しなくてはと思っていたGearmanとTheSchwartzで遊んでいます。PythonのGearman Client経由でTheSchwartzにジョブを追加する必要があるのですが、まずはPythonでGearmanのClientとWorkerを書いてみます。Python Gearman bindingにはsixapartのレポジトリのものを使いました。easy_installでインストールできるので楽ですね。 $ easy_install http://code.sixapart.com/svn/gearman/trunk/api/python/lib/ テスト用に書いてみたWorker. # worker.py from gearman import GearmanWorker def echo(job): # Do something print job.arg wor
TheSchwartzの概要は分かってきたので、実践投入に向けてより実用的なコードを書いてみます。TheSchwartz::Worker::SendEmailを使ってメールの配信というのが、簡単そう、かつ切実に必要なので、これを試してみました。 まず、PythonとTheSchwartzを媒介するGearmanベースのTheSchwartzを用意します。基本的には昨日言及したコードを利用し、データベースの設定だけ書き換えます。 # myschwartzd use Gearman::Worker; use TheSchwartz; use JSON::Any; my $j = JSON::Any->new; my $ts = TheSchwartz->new(databases => [{ dsn => "dbi:mysql:database=schwartz", user => "root
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
http://d.hatena.ne.jp/mopemope/20090220/p4 で、pip って何!? pip http://pip.openplans.org/ pip is a replacement for easy_install. It uses mostly the same techniques for finding packages, so packages that were made easy_installable should be pip-installable as well. easy_install っていうか package の管理をもっと便利にするぜっていう認識でOK? とりあえずインストール $ sudo easy_install pip 自分の環境にインストールしてる package の一覧取得 $ pip freeze で出来る http:
bpython is a fancy interface to the Python interpreter for Unix-like operating systems -- www.bpython-interpreter.org I usually used interactive Python shell, but now so in love with BPython. It works very well on Mac OS X . At first, I couldn't get Django's "python manage.py shell" to work with Bpython. I can only make it work with IPython. But I want to use BPython so bad, so let's try to make i
emacsflymake便利そうだなーと思ったので、NTEmacsで試してみました。pylint・logilab-common・logilab-astngpylintlogilab-commonlogilab-astngをダウンロード解凍し、 C:\pylint> python setup.py install C:\logilab-common> python setup.py install C:\logilab-astng> python setup.py install でインストール。.emacs (load "init-flymake") init-flymake.elantipopさんのの設定をまるっともらって、 ;; Python用設定 要epylint.py ;; See also http://www.emacswiki.org/cgi-bin/wiki/PythonM
メニュー トップ Pythonの紹介 FAQ 質問の仕方 参考図書 参考サイト 翻訳文献 日本語 問題集 よくある誤解 Python可能サーバ Pythonの更新情報 処理系 開発環境 2chテンプレ 過去ログ 練習用ページ 雑談 公式サイト 本家オフィシャル 日本ユーザー会 検索 キーワード AND OR ページ内容も含める 編集用 FrontPage InterWikiName Keyword Menu PluginHelp 更新履歴 2022/11/16 鐃緒申鐃所集 2022/10/11 japaneseCharset 2022/9/24 Implementations 2021/8/26 雑談 2020/12/11 %CC%E4%C2%EA%BD%B8
home changes contents help options Wiki contents BookmarkOnInstantRails BookmarkOnInstantRails2 GoogleMapsEditor GoogleAPI Plone on Windows Blogのインストール DebianにPloneをインストールする COREBlogをインストール LocalFSをインストール ZWikiをインストール ejSplitterをインストール jMailHostをインストール Postgresql8をインストール Ploneの基本的な使い方 Ploneをインストールする Wikiのインストール サーバを外部に公開する 他のPCからPloneを見る FrontPage Idea/Idea PythonRecipe 004:代入 005:文の区切り 006:コメント 0
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く