Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Python ããã±ã¼ã¸ç®¡çæè¡ã¾ã¨ã (pip, setuptools, easy_install, etc) Python ã®ããã±ã¼ã¸ç®¡çé¢ä¿ã®æ å ±ããªãã£ã·ã£ã«ã«ã¯æ´çããã¦ãªãã ã¾ãããã±ã¼ã¸ç®¡çã¾ããã§ã§ã¦ãããã¼ã¯ã¼ããããã¤ããã£ã¦åããé£ãã®ã§å®çµã«ã¾ã¨ãã¦ã¿ã¾ããã ãã®ããã¥ã¡ã³ãèªä½ã¯å°ãé·ãã§ãããçµè«ã¨ãã¦ã¯2015å¹´1ææç¹ã§ã¯ åå pip ã使ã£ã¦ããã±ã¼ã¸ã®ç®¡çãè¡ã setuptools ãåºã使ããã¦ããã®ã§å ¥ãã¦ããã¨ããããããã pip ã®ã¤ã³ã¹ãã¼ã«æã«èªåçã«ã«ã¤ã³ã¹ãã¼ã«ããã distribute 㯠2013å¹´ã« setuptools ã«ãã¼ã¸ãããã®ã§ä¸è¦ ã¨ããæ¹éã§ããã¨æãã¾ãã ãã å°ãå¤ãæ å ±ã½ã¼ã¹ãããã±ã¼ã¸ã®ããã¥ã¡ã³ããèªãã§ãã㨠distribute ã®å©ç¨ãå§ãããã¦ãããã site-packages, e
注æ!!!! ãã®ããã¥ã¡ã³ãã¯Fabricãã¼ã¸ã§ã³1.10.1ã®æ¥æ¬èªè¨³ã§ãå¤ããã®ã§ãã ææ°ã®Fabric2.xã®ããã¥ã¡ã³ãã¯ãªãªã¸ãã«ã®è±èªããã¥ã¡ã³ãhttp://www.fabfile.org/ãåç §ãã¦ãã ããã Fabricã®ããã¥ã¡ã³ãã¸ãããã !¶ ãã®ãµã¤ãã§ã¯Fabricã®å©ç¨æ³ã¨APIã®ããã¥ã¡ã³ããã«ãã¼ãã¦ãã¾ããå ¬éããã¦ããå¤æ´å±¥æ´ã¨ãã®ããã¸ã§ã¯ããã©ã®ããã«ã¡ã³ãããã¦ããããå«ãã ãFabricã¨ã¯ä½ãã¨ããã¨ã«é¢ããåºæ¬çãªæ å ±ã¯ ã¡ã¤ã³ã®ããã¸ã§ã¯ãã¦ã§ããµã¤ã ãã覧ãã ããã ãã¥ã¼ããªã¢ã«Â¶ æ°ããã¦ã¼ã¶ã¼ã Fabricã®åºæ¬çãªæ©è½ã®æ¦è¦ãç¥ãããæ¹ã¯ æ¦è¦ã¨ãã¥ã¼ããªã¢ã« ãåç §ãã¦ãã ããããã®ããã¥ã¡ã³ãã®æ®ãã®é¨åã§ã¯ãå 容ã«é¢ãã¦å°ãªãã¨ãä¸æçã«ã¯ããç¥ã£ã¦ãããã¨ã¨ä»®å®ãã¾ãã
Flask ãã³ãºãªã³Â¶ Flask 㯠Python 製ã®ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ã§ãã ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ã®å¯¾ç¾©èªã¯ãã«ã¹ã¿ãã¯ãã¬ã¼ã ã¯ã¼ã¯ã§ãæ®éã® Webã¢ããªã±ã¼ã·ã§ã³ãä½ãã®ã«å¿ è¦ãªãã®ã»ä¾¿å©ãªãã®ãã§ããã ããªãã§ã ç¨æãããã®ã«ãªãã¾ãã ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ã¯ãã®éã§ãæä½éå¿ è¦ãªãã®ããã»ã¼ãã¹ã¦ã®Webã¢ããªã§ 使ãæ©è½ã ãã§æ§æããããã¬ã¼ã ã¯ã¼ã¯ã§ãã ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ã®ãã«ã¹ã¿ãã¯ãã¬ã¼ã ã¯ã¼ã¯ã«å¯¾ããå©ç¹ã¯ã ãã¬ã¼ã ã¯ã¼ã¯ãè¦ããã ãã§ç²¾ä¸æ¯ã«ãªããªãã§æ¸ã 追å ã®ãã¼ã«ãèªåã§é¸ã¶ã®ãç°¡å (O/Rãããã¼ç) ã«ãªãã¾ã. ãªã®ã§ãç°¡åãªã¢ããªãçãåå¼·æéã§ä½ãããã±ã¼ã¹ããé«ãç®æ¨æ§è½ãªã©ã§ ãã«ã¹ã¿ãã¯åãã¬ã¼ã ã¯ã¼ã¯ããã®ã¾ã¾ã§ã¯é©ç¨ã§ããªã (å¤§å¹ ãªæ¹é ãå¿ è¦ã«ãªã£ã¦ãã¾ã) ã±ã¼ã¹ã§ã¯ããã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ãé©ãã¦ãã¾ãã ç®
RSpec ã®å ¥éã¨ãã®ä¸æ©å 㸠ãã¨ã¦ãããè¨äºã ã£ãã®ã§ã Python ã§åçµããã¦ãããã¾ããã https://github.com/methane/pytest-tut Ruby ã³ãã¥ããã£ã¨ Python ã³ãã¥ããã£ã®èãæ¹ã®éããè¦ãã¦é¢ç½ãã¨æãã¾ãã ç°å¢ã¯ Python 3.3 ã§ãå®è¡ã«ã¯ py.test ã³ãã³ãã使ãã¾ãããã py.test ã®æ©è½ã¯ç¹ã«ä½¿ã£ã¦ããªãã®ã§ nose ã§ããªãã§ã大ä¸å¤«ã§ãã ãã¡ã¤ã«ã®ä½æ ã¾ãã¯ç©ºã®å®è£ ã¨ãã¹ããä½ãã¾ãã message_filter.py class MessageFilter: pass message_filter_test.py æåã®ãã¹ããæ¸ã py.test 㯠.should ã¨ãã£ãã¡ã½ãããåæã«çããããã¯ãã¾ãããæ®éã« assert æãæ¸ãã¾ãããã --- a/messege
ãå ¨ã¦ã®webã¨ã³ã¸ãã¢ãPythonãåå¼·ããã¹ã2013å¹´å°æ¥ãï¼2013-01-01ï¼ã¨ããè¨äºã人æ°ãéãã¦ããããã ã巳年ï¼ããå¹´ï¼ã«ã²ã£ããã¦ãããããPythonãåå¼·ããã人ã対象ã«ãæ¸ç±ãã©ã¤ãã©ãªãªã©ãç´¹ä»ãã¦ãããæçãªæ å ±ãå¤æ°å«ã¾ãã¦ããããã¡ãã£ã¨Pythonã試ãã¦ã¿ããã¨ããç¨åº¦ã®äººã«ã¯ãããã ã¨æ·å± ãé«ãããããã«æãã Pythonã«éããªããããããããè¨èªãã¯ãããã¨ãããã£ã¨ãé害ã«ãªãã®ã¯ãç°å¢æ§ç¯ãã ãããPythonã®å ´åãLinuxãMacã§ããã°ãPythonã¤ã³ã¿ããªã¿ã¯æåããå ¥ã£ã¦ããã®ã§ãPythonãã®ãã®ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ã¯ãªããããããããã®ãã¨ã©ãããã®ãï¼ãã¨ããã®ãããªããªãããããããä¾ãã°ããHello, World!ããåºãWebã¢ããªãæ¸ãã«ã¯ãããããã©ãããã°ããã®ãããªãããã®Webãã¬ã¼ã ã¯ã¼ã¯ã使
GitHub - faif / python-patterns https://github.com/faif/python-patterns GoFãã¶ã¤ã³ãã¿ã¼ã³ã®Pythonã«ãããµã³ãã«ã³ã¼ããéããããã¸ã§ã¯ãã以ä¸ã®åãã¡ã¤ã«ãå ¥ã£ã¦ããã - abstract_factory.py - adapter.py - borg.py - bridge.py - builder.py - chain.py - command.py - composite.py - decorator.py - facade.py - factory_method.py - flyweight.py - iterator.py - mediator.py - memento.py - null.py - observer.py - pool.py - prototype.py - proxy.py -
pythonbrew ãåãã£ã¹ã³ã³ç¶æ ã«ãªã£ãã®ã§éãå ããªãããªã¼ã¨å°ã調ã¹ã¦ãããã§ãããããã¾ããã£ããããæãã®ãã®ããªãã§ããpythonbrew ã fork ãããã®ã ã¨ãã¨ããããååã ãå¤ã㦠pvm ã¨åä»ãããããã®ã¨ãpythonz ã¨ãã pythonbrew ããæ©è½ãããã¤ãåãè½ãããã®ãããã¾ããpvm ã®ã»ãã¯æ£ç´ã©ãããããã ããæãæ¼ã£ã¦ããpythonz ã®ã»ã㯠pythobrew ã®ãããªãã®ã ããã¨æã£ã¦ä½¿ã£ã¦ã¿ããææ³ãçµæ§éã£ã¦ã¦ããããã pythonz èªä½ã¯ä½ãããã«ãã python (pypy, jython) ãã¤ã³ã¹ãã¼ã«ããã ãã§ãpythonbrew ã®ãã㪠use ã¨ã switch ã¨ãã¯æä¾ããã¦ãªããã»ãã¨ã«ã¤ã³ã¹ãã¼ã«ããã ããããã«ãã¹ãéãããã§ããªãããµã¤ãã«æ¸ããã¦ããããã«ããã¨ã¯åæã«ãã® py
pythonbrewãã¤ãã£ã¦ã¿ã¦ã¯ã1å¹´ã¨åå¹´ãæã£ã以ä¸ã®ã²ã¨ã«Watchããæã£ã以ä¸ã®ã²ã¨ã«ä½¿ããã¦ããã¿ããã§ãã Pythonã®ã¤ã³ã¹ãã¼ã«ãé¢åãããã¨æã£ã¦ããæ¹ãå ã RVMãperlbrewã使ã£ã¦ããæ¹ã ããã®åå¿ã¯ããã¨è¯ãã£ãããã«æãã¾ãã ãããªpythonbrewã§ãããããã¶ãåããéçºãæ»ã£ã¦ãã¦åã°æ¾ç½®æ°å³ã«ãªã£ã¦ãã¾ãã çç±ã¯ããã¤ãããã¾ããããã£ããè¨ãã¨éçºã«å²ãæéããªããªãã¾ããã ãããªä¸ã¤ãå æ¥ãpythonzã¨ããé¡ä¼¼ã®ããã¸ã§ã¯ããåºæ¥ã模æ§ã§ãã pythonbrewãForkãããã®ã¨ãããã¨ã§ãä¸é¨æ©è½ã¯åãã§ããããã§ãããPyPyã®ã¤ã³ã¹ãã¼ã«ããµãã¼ããã¦ãããpythonbrewã«ã¯ãªãæ©è½ãããããã§ãã ä»å¾ã¯ãã¡ããããã¡ã¯ãã«ãªã£ã¦ããã®ã§ã¯ãªããã¨æå¾ ãè¾¼ãã¤ã¤ãç´¹ä»ãã¾ãã pythonbrewã®ä»å¾ã§ãã
pythonbrewã«ãããã¬ãã·ãã«ãªPythonç°å¢ã®æ§ç¯ Vimã®è¨å®ã¨ãã¯ãã¾ãé¢ä¿ãªãã§ããæå¼·ãè© ãããã«æå¼·ã®Pythonç°å¢ãå¿ è¦ãªã®ã§æ§ç¯ãã¾ããæå¼·ã®ç°å¢ã¨ã¯ ã¤ã³ã¹ãã¼ã«ããã¦ããPythonã®ãã¼ã¸ã§ã³ãéããã¨ã«ãã£ã¦ä¸å¯è§£ãªãã°ãçºçããªã ã¤ã³ã¹ãã¼ã«ããã¦ããã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãéããã¨ã«ä¸å¯ï¼ï½ï½ ã¤ã³ã¹ãã¼ã«ããã¦ããã©ã¤ãã©ãªå士ãå¹²æ¸ãã¦ä¸å¯è§£ãªï¼ï½ï½ ã ã¨æã£ã¦ãã¾ãããããã解決ããããã« pythonbrew ã¨ããç´ æ´ãããã½ãããå©ç¨ãã¾ãã ãã ãã®ã½ããã¯ã·ã§ã«ãåæã¨ãªã£ã¦ããã®ã§Windowsãã使ãã®æ¹ã¯ä»£ããã« virtualenv ãã¤ã³ã¹ãã¼ã«ãã¦å ã«é²ãã§ãã ããã Pythonã«ã¯å¤§ããåãã¦2.xç³»ã¨3.xç³»ã®å¤§ããªãã¼ã¸ã§ã³ãããããã®äºã¤ã¯ç¸å®¹ããªããã®ã¨ãªã£ã¦ãã¾ãã 2.xç³»ã¯ãã£ã¨ä½¿ããã¦ãããã®ã§å¤é¨ã©
ãµã¼ãã¼ã®ãªã½ã¼ã¹ãè¦ãã«ã¯ã°ã©ãåã¯éè¦ã§ãããæ¨ç§»ã§ã¯ãªããªã¢ã«ã¿ã¤ã ãªç¶æ³ãä¾ãã°ç§åä½ã®ã¹ãã¤ãã¼ãªè² è·ãè¦ãã«ã¯ããµã¼ãã¼ä¸ã§vmstatãiostatãªã©ã®*statãã¡ããªã¼ãå©ãå¿ è¦ãããã¾ãã ãã¦ãvmstatã¯ã¡ã¢ãªã®ç¶æ³ããããã¯æ°åä½ã®I/Oç¶æ³ã¯è¦ããã¾ããããã¤ãåä½ã®I/Oç¶æ³ããããã¯ã¼ã¯ã®éä¿¡ãåä¿¡ãã¤ãæ°ãè¦ããã¨ã¯ã§ãã¾ããã # vmstat 1 procs -----------memory---------- ---swap--- -----io----- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 3 1 0 4724956 355452 726532 0 0 54 484 3 3 1 0 99 0 0 2 0 0 47
ä¸é¨ã§æå¼·ã¨å¼ã°ãã¦ããPythonã«ã¯, virtualenvãipythonã®ãããªçµ¶å¯¾å ¥ããè¶ å®çªä»¥å¤ã«ã, ããã¨ä¾¿å©ãªã©ã¤ãã©ãªã¨ãããã®ãããã¾ã. ããã§ã¯ã©ããã¼ã»ãã³, 7ã¤ãç´¹ä»ãã¾ããã. ãªã, furl以å¤ã¯3.xã«å¯¾å¿ãã¦ãã¾ã. requests è¦ããããWebãªã¯ã¨ã¹ã(urllib.request.urlopenã®ä»£æ¿) furl URLã®æ±ãããã£ã¨ã·ã³ãã«ã«(urllib.parse.urlparseã®ä»£æ¿) PyQuery jQueryã®ã¹ã¯ã¬ã¤ãã³ã°åãPythonã«(html.parser.HTTPParser, lxml, BeautifulSoupã®ä»£æ¿) Send2Trash/Send2Trash3k ã¯ãã¹ãã©ãããã©ã¼ã ãªããã¿ç®±ã¸éãã WindowsåãPythonã©ã³ãã£ã¼ 2.xã¨3.xãåãæ¿ãã PySide/PyQt4
@mopemopeããããããã³ã渡ããã¾ããã2011 Pythonã¢ããã³ãã«ã¬ã³ãã¼(Python3) 16æ¥ç®æ å½ã®ããããï¼@doloopwhileï¼ã§ãã QãRubyã¨Pythonã©ã¡ããåå¿è åãã§ããããï¼ã AãPythonã¯æ¥æ¬èªæ å ±ãå°ãªãã®ã§ãRubyãããããã§ãã 質åæ²ç¤ºæ¿ãªã©ã§ããã°ãã°è¦ãããããåãã§ããããããæ¬å½ã«Pythonã¯æ¥æ¬èªæ å ±ãå°ãªãã®ã§ããããï¼ ç¢ºãã«ããã¤ã¦ã¯Rubyã®æ å ±éã®æ¹ãå§åçã ã£ãã§ããããããããç¾å¨ã§ã¯Pythonãæ¥æ¬ã§åºã使ãããPythonããã°ã©ãã¼ã®ããã°ãå¤æ°ããã¾ããå°ãªãã¨ãåå¿è ãPythonãå§ããã®ã«æ å ±ä¸è¶³ã¨ãããã¨ã¯ããã¾ããã ããã§ãææ¥ã®Pythonããã°ã©ãã¼ã®ãããæ¥æ¬èªæ å ±ãåæãã¦ããã¾ããã¯ãªã¨ç¡é£ã¨ãããã常èçãªè³æã°ããã§ãã çµå±ãä½ãèªãã°ããã®ï¼ï¼ã¤ã®æ¥æ¬èªæ å ±
ã¿ããªã®IoT/ã¿ããªã®Pythonã®èè ãäºåçè¿ã160平米ã®åºä»ãä¸æ¸å»ºã¦ã«å«/æ¯å/å¨/ãããã¨æ®ããã¦ã¾ããæé1000ä¸PV/150ä¸UUã®Webãµã¼ãã¹éå¶ä¸ã å 責äºé ãã©ã¤ãã·ã¼ããªã·ã¼ é 調ã«ããã°æ¥å¹´ã®4æã«ç¬¬ä¸åãçã¾ããäºå®ã§ããã®ã§ï¼å¦è¸å¤§å¦è¿ãã®ã³ã¸ã£ã¬ããããã«ãã§ã§ã©ã³ããé£ã¹ãªãã家æä¼è°ãéããã®ã§ãããçµæï¼åä¾ã®åä»ãã®æ¹éã以ä¸ã®ããã«æ±ºå®ããã è¯ãæå³ãæã£ãæ¼¢åã使ããã åé¢ã«ã¯ãã ãããã èªã¿ã«ããã ãããã ç»æ°ã¯ãã ãããªããã©è¯ãã«è¶ãããã¨ã¯ãªã ããã¥ã³ãã¼ã ã¯é¿ãã ããªãçãã ãããã®æéã§ããï¼åä»ãã®ä½æ¥ã¯ç¸å½é£èªãããã¨ãäºæ³ããããæ¼¢åã¨ãèªã¿ã¨ããããããã¨ååãçæãã¦ããããããªããã°ã©ããã«ãªä»çµã¿ãå¿ è¦ã ãªï¼ã¨æã£ãã®ã¯ãã®ããã§ãã£ãã iPhoneã¢ããªä½ãããã¨ãï¼Webã¢ããªã«ãããããªã©ã¨å¦
ã¯ããã« ããã«ã¡ã¯ãPythonçã®æ å¼±ã§ãããªãããWEBå±ãç¥ã£ã¦ããã¹ããã£ã¦ã¨ã³ããªãåºã¦ããã§ãããã¾ãèªåã¯ã¨ã³ã¸ãã¢ã®ç«¯ãããªã®ã§ãã®ã¸ãã¯èªãã§ã¾ãããã£ã¦ã®ãã¡ã¢ã£ã¦ããã¾ããåã¯æ å¼±ãªã®ã§ããã£ã¨ç´ æµãªãµã¤ãããã£ããæãã¦ä¸ããã ãè±èªã ããâ¦ããªãã¦æå¦ã£ã¡ãé§ç®ãªWEBå±ãç¥ã£ã¦ããã¹ãå³é¸ããã°ãWEBãã¬ã¸ã³è²ã | ãã³ã¯ã¼ãã¼ã®ããã¶å± åã¯ä¸»ã«Pythonç³»ã®è¨äºãèªãã§ã¾ãããä»ã®ãã¼ãï¼è¨èªãOSãä»®æ³åãDBãªã©ãªã©ï¼ã¯ãã£ã¨èåãªæ¹ã ããã¼ãã«æ²¿ã£ã¦æ¸ãã¦ããã¦ããããããããªãããããã¨æã£ã¦ãã¾ãã ãããªã®ãèªãã§ãã å ¬å¼ãµã¤ã å ¬å¼ãµã¤ã ãªã«ã¯ã¨ãããå ¬å¼ãµã¤ãã¨ããè¦ã¦ããã®ã¯ããã¼ãä¾ã¨ãã¦Pythonã®å ¬å¼ãæ´æ°ã«é¢ããRSSãããã°ãããç»é²ããã¨ä¾¿å©ã§ãã ããã±ã¼ã¸ç®¡çã¬ãã¸ã㪠ä»æ¥æ¥ã®ããã°ã©ãã³ã°è¨èªã ã¨ããã±ã¼
1. - Python ã«ãã Python å®è£ - 2011/11/11 pypy-ja éã®è»å£ å£å¡ ãããã¾(@shomah4a) 2. ããã㨠â PyPy ã£ã¦ãªã«? â Python å¦çç³»ã¨ãã¦ã® PyPy â æ´å²çãªã話 â ããä¸ã¤ã® PyPy â RPython ãã¼ã«ãã§ã¤ã³ â è¨èªãä½ãã«ã¯ â éã®è»å£ã«ã¤ã㦠3. ãåã誰ã â ãããã¾(@shomah4a) â Java ã®ä¼ç¤¾å¤å â ã¦ããããã®ä¼ç¤¾ã®ç¤¾å åå¼·ä¼ â ä»äºã§ã¯ä»ã¯ Python 使ã£ã¦ã¾ããã¨æã£ããããã§ããªã ãªã£ã â Java ã¨ããããããã¾ãã â PyPy ã触ã£ã¦ã¿ããã£ããã¯ã俺è¨èªãä½ãããã£ãã ã â PyPy éã®è»å£ã®å£å¡ããã
Graphite does three things: Kick ass. Chew bubblegum. Make it easy to store and graph metrics. (And itâs all out of bubblegum.) Learn more about Graphite About the Project Graphite is an enterprise-ready monitoring tool that runs equally well on cheap hardware or Cloud infrastructure. Teams use Graphite to track the performance of their websites, applications, business services, and networked serv
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}