.. -*- restructuredtext -*- HtmlCssInclude converts css into inline style html for mobile. font size is changed by mobile carrier (docomo, au, softbank). when mobile is VGA, image size is changed. Requirements ------------ * Python 2.5 or later (not support 3.x) * lxml Setup ----- :: $ easy_install HtmlCssInclude How to Use -------- :: >>> from HtmlCssInclude import CssInclude initialize with mobi
View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery Meta License: BSD License (BSD-2-Clause) Author: Slavek Kabrda Maintainer: Adarsh Krishnan Tags mock, testing, test, unittest, pytest Requires: Python <4.0.0, >=3.8.0 flexmock - Mock, stub, and spy library for Python. Flexmock is a testing library for Python that makes it easy to create mocks, stub
追記: t2yさんが翻訳してくださいました。 argparseコマンドラインオプションと引数の解析 python 2.7からコマンドラインの引数を解釈するargparseモジュールが標準で入りました。 従来使われてきたoptparseは廃止されます。ただし、広く使われているところから他の廃止されるモジュールとは異なり消されることはなく、警告も標準では出ません。 optparseからargparseに移行する理由や廃止の進め方はPEP 389に記載されています。 以下にPEP 389の和訳を(訳に自信がない場所がありますが)行ないましたので参考にしてください。 http://www.tdoc.info/PEP-ja/389.html というわけで、ざっとargparseの使い方を勉強したのでここに公開します。間違ってたらご指摘ください。 なお、ちゃんとしたドキュメントは http://doc
multiprocessingといっても今まであったos.forkをうまくラップしてくれてる というだけなのでプロセスをforkしたらどうなるの?っていうのを知らないと 扱えないと思われる。 forkすると子プロセスには今までの状態がコピーされるがその後はメモリ空間が 別々になる。 (当たり前の話) だが開いているfdとかファイルエントリテーブルなどは共有される。 どのタイミングでforkするかが個人的には重要。 例ではPIPEはいっさい使ってない。 from multiprocessing import current_process, cpu_count, Process, Manager, Queue import time class Parent(object): def __init__(self, name): self.name = name self.queue = Qu
みんなのIoT/みんなのPythonの著者。二子玉近く160平米の庭付き一戸建てに嫁/息子/娘/わんこと暮らしてます。月間1000万PV/150万UUのWebサービス運営中。 免責事項 プライバシーポリシー いやー,multiprocessingモジュールイイよ。パねえよ。要はプロセス間通信を行うときに便利なパッケージで,threadingと似たようなAPIなのでGILが回避できてマルチプロセッサとかマルチコアの性能を有効に使えてウハウハとか,リモートマシンにあるプロセスと通信したりオブジェクトをやりとりしたりできてウハウハとか,まあそういうモノです。これでおっきしない奴は技術者として大切な資質を失っていると思うよ。べつにおっきしなくてもいいんだけど,そういう奴とは一緒に仕事したくないよ。 ドキュメントのイントロダクションを超訳してみたです。 はじめに multiprocessingはth
The argparse module includes tools for building command line argument and option processors. It was added to Python 2.7 as a replacement for optparse. The implementation of argparse supports features that would not have been easy to add to optparse, and that would have required backwards-incompatible API changes, so a new module was brought into the library instead. optparse is now deprecated. Set
© Copyright Doug Hellmann. | | Last updated on Feb 17, 2013. | Created using Sphinx. | Design based on "Leaves" by SmallPark
Verified details These details have been verified by PyPI Maintainers schmir Unverified details These details have not been verified by PyPI Project links Homepage View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery Meta License: zlib/libpng License (zlib/libpng license) Author: Ralf Schmitt Authors: Ralf Schmitt <ralf@systemexit.de> Version: 1.1.3
Unverified details These details have not been verified by PyPI View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery Meta License: MIT License (UNKNOWN) Author: R. Tyler Croy Spawning is a fast, easy to use, and flexible HTTP server for hosting python web applications which conform to the WSGI interface. Spawning uses eventlet to do non-blocking I/O
View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery Meta License: MIT License (MIT) Author: Sergey Shepelev Requires: Python >=3.7 Warning New usages of eventlet are now heavily discouraged! Please read the following. Eventlet was created almost 18 years ago, at a time where async features were absent from the CPython stdlib. With time eventlet evol
みんなのIoT/みんなのPythonの著者。二子玉近く160平米の庭付き一戸建てに嫁/息子/娘/わんこと暮らしてます。月間1000万PV/150万UUのWebサービス運営中。 免責事項 プライバシーポリシー wiki.python.orgにはUsefulModules(Pythonの定番モジュール集)というリストがある。「開発者に有益な情報を提供するため」と注意書きがあるだけあって,これがなかなか網羅的で便利なので,翻訳しながらご紹介しましょう:-)。 リストを見ると,Web開発やテキスト処理はもちろん,数値解析,ビジュアライズ,ゲーム,GUIライブラリなどバリエーション豊かで,Pythonの全方位ぶりがよく見えてくる。他のカテゴリページへのポインタは,適宜リストをインラインに展開してあるものもあります。べたっと訳しちゃったので,間違いなどあるかも。コメントなどでご指摘いただけるとありがた
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く