python

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
python [2019/08/16 08:32] – [環境構築] ともやんpython [2020/01/27 17:25] – [パッケージ] ともやん
行 1: 行 1:
-<ifauth !@loggedinusers><html> 
-<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 
-<script> 
-     (adsbygoogle = window.adsbygoogle || []).push({ 
-          google_ad_client: "ca-pub-0791334967460971", 
-          enable_page_level_ads: true 
-     }); 
-</script></html></ifauth> 
 ====== Python 関連 ====== ====== Python 関連 ======
 {{:python:python_logo.svg?200|Python Logo}}\\ {{:python:python_logo.svg?200|Python Logo}}\\
行 17: 行 9:
 \\ \\
 [[python:pyodide|Pyodide - Web ブラウザで動作する Python 環境]]\\ [[python:pyodide|Pyodide - Web ブラウザで動作する Python 環境]]\\
 +[[javascript:brython|Brython - クライアントサイドの Web プログラミング用 Python 3 の実装]]\\
 \\ \\
 [[python:venv|Python venv 仮想環境]]\\ [[python:venv|Python venv 仮想環境]]\\
 +[[python:virtualenvwrapper|VirtualEnv & VirtualEnvWrapper で作る Python 2.7 仮想環境]](古い資料です)\\
 [[python:pythonbrew|pythonbrew の使い方]]\\ [[python:pythonbrew|pythonbrew の使い方]]\\
 [[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\ [[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\
行 27: 行 21:
 [[windows:mercurial|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Windows)\\ [[windows:mercurial|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Windows)\\
 [[mac:tortoisehg|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Mac)\\ [[mac:tortoisehg|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Mac)\\
-[[python:virtualenvwrapper|VirtualEnv & VirtualEnvWrapper で作る Python 仮想環境]](古い資料です)\\ 
  
 ===== パッケージ ===== ===== パッケージ =====
行 36: 行 29:
 [[python:fabric|Fabric]]\\ [[python:fabric|Fabric]]\\
 [[python:moinmoin|MoinMoin]]\\ [[python:moinmoin|MoinMoin]]\\
 +[[python:pythonnet|Python for .NET (pythonnet)]] (Python .NET 連携)\\
 [[python:uwsgi|uWSGI - WSGI アプリケーションコンテナ]]\\ [[python:uwsgi|uWSGI - WSGI アプリケーションコンテナ]]\\
 [[python:cefpython|CEFPython]]\\ [[python:cefpython|CEFPython]]\\
行 44: 行 38:
 \\ \\
 [[python:python-hwinfo|python-hwinfo]]\\ [[python:python-hwinfo|python-hwinfo]]\\
 +
 +===== アプリ =====
 +[[python:youtube-dl|youtube-dl - YouTube や他の動画サイトから動画をダウンロード]]\\
  
 ===== 言語構文 ===== ===== 言語構文 =====
行 64: 行 61:
 [[python:wxpython|wxPython - クロス プラットフォーム GUIライブラリ]]\\ [[python:wxpython|wxPython - クロス プラットフォーム GUIライブラリ]]\\
 [[javascript:mochikit|MochiKit - A lightweight Javascript library]]\\ [[javascript:mochikit|MochiKit - A lightweight Javascript library]]\\
 +
 +===== JIT コンパイラ =====
 +[[http://numba.pydata.org/|Numba: A High Performance Python Compiler]]\\
 + * Anaconda, Inc. が開発する Python コードの JIT コンパイラ\\
 + * 使い方は関数に @njit = @jit(nopython=True) デコレータを指定する\\
 + * @jit(int32(int32, int32)) のような型指定で更に高速化される\\
 + * @jit(nogil=True) によりマルチコアシステムを活用できる\\
 + * @jit(cache=True) によりプログラムを呼び出すたびに掛かるコンパイル時間を回避できる\\
 + * @jit(nopython=True, parallel=True) = @njit(parallel=True) により自動並列化による最適化を実行できる\\
 + * Numpy などは高速化できるが Pandas は Numba によって理解されないため高速化されない\\
 + * Numba は関数の Python バイトコードを LLVM を使用して CPU に合わせた関数のマシンコードバージョンを生成する\\
 + * [[https://developer.nvidia.com/cuda-zone|Nvidia CUDA]] および [[https://rocm.github.io/|AMD ROC]] GPU をターゲットにできる\\
 +
 +Pandas がボトルネックになってもカーネル関数に分離すれば Numba で最適化出来る。\\
 +[[https://medium.com/bcggamma/bring-your-python-code-up-to-speed-with-numba-1aa1c0e52885|Bring Your Python Code Up to Speed with Numba - BCG GAMMA - Medium]]\\
  
 ===== 開発環境 ===== ===== 開発環境 =====