Results of 1 - 10 of about 11 for console (0.010 sec.)
- importlib.metadata -- パッケージメタデータへのアクセス 12909
- importlib.metadata -- パッケージメタデータへのアクセス Added in version 3.8. バージョン 3.10 で変更: importlib.metadata は暫定的なものではなくなりました。 ソースコード: Lib/importlib/metadata/__init__.py importlib.metadata は、インストール済
...oint の属性 (通常は 'group' または 'name') によって選択できる、エントリポイントのコレクションも取得できます。 グループには console_scripts や distutils.commands などがあり、各グループは EntryPoint オブジェクトのコレクションを含みます。 ディストリビューシ...s オブジェクトを返します。 このオブジェクトには、便利な names 属性と groups 属性があります。 >>> sorted ( eps . groups ) ['console_scripts', 'distutils.commands', 'distutils.setup_keywords', 'egg_info.writers', 'setuptools.installation'] EntryPoints には...、特定の属性に合うエントリポイントを選ぶ select() メソッドがあります。 console_scripts グループのエントリポイントを選びます。 >>> scripts = eps . select ( group = 'console_scripts' ) entry_points() はキ... - https://man.mtool.work/python/3.14/library/importlib.metadata.html
- Logging クックブック 11878
- Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース
...H:%M' , filename = '/tmp/myapp.log' , filemode = 'w' ) # INFO 以上のメッセージを sys.stderr に出力するハンドラーを定義する console = logging . StreamHandler () console . setLevel ( logging . INFO ) # コンソール用のより単純な書式を設定する formatter = lo...gging . Formatter ( ' %(name)-12s : %(levelname)-8s %(message)s ' ) # ハンドラーにこの書式を設定する console . setFormatter ( formatter ) # ルートロガーにハンドラーを追加する logging . getLogger () . addHandler ( console ) # これで...ng.Formatter' , 'format' : ' %(asctime)s %(name)-15s %(levelname)-8s %(processName)-10s %(message)s ' } }, 'handlers' : { 'console' : { 'class' : 'logging.StreamHandler' , 'level' : 'INFO' , }, 'file' : { 'class' : 'logging.FileHandler' , 'filename' : '... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging HOWTO 9282
- Logging HOWTO Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページはチュートリアルです。レファレンスやロギングクックブックは、 その他のリソース を参照してください。 基本 logging チュートリアル logging は、あるソフトウェアが実行
...書き出すことです。 簡単な例 ごく簡単な例は: import logging logging . warning ( 'Watch out!' ) # will print a message to the console logging . info ( 'I told you so' ) # will not print anything これらの行をスクリプトにタイプして実行すると、次のようにコンソ...format = ' %(levelname)s : %(message)s ' , level = logging . DEBUG ) logging . debug ( 'This message should appear on the console' ) logging . info ( 'So should this' ) logging . warning ( 'And this, too' ) により、次のように表示されます: DEBUG:This me...ssage should appear on the console INFO:So should this WARNING:And this, too ご覧の通り、先の例に現れた 'root' が消失しています。フォーマット文字列に含めるこ... - https://man.mtool.work/python/3.14/howto/logging.html
- code --- インタープリター基底クラス 8499
- code --- インタープリター基底クラス ソースコード: Lib/code.py code モジュールはread-eval-print (読み込み-評価-表示)ループをPythonで実装するための機能を提供します。対話的なインタプリタプロンプトを提供するアプリケーションを作るために使える二つ
...locals 引数はその中でコードが実行される名前空間として使用されるマッピングを指定します。その初期値は、キー '__name__' が '__console__' に設定され、キー '__doc__' が None に設定された新しく作られた辞書です。 InteractiveInterpreter インスタンスで作成した関...間に属します。 これらを pickle 化できるのは、 locals が既存のモジュールの名前空間である場合だけです。 class code. InteractiveConsole ( locals = None , filename = '<console>' , local_exit = False ) Python の対話型インタープリターの振る舞いを忠実にエミュレー..., local = None , exitmsg = None , local_exit = False ) read-eval-print ループを実行するための便利な関数。これは InteractiveConsole の新しいインスタンスを作り、 readfunc が与えられた場合は InteractiveConsole.raw_input() メソッドとして使われるように設定し... - https://man.mtool.work/python/3.14/library/code.html
- logging.config --- ログ記録の環境設定 8499
- logging.config --- ログ記録の環境設定 ソースコード: Lib/logging/config.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チュートリアル 上級チュートリアル ロギングクックブ
...スキーマ ロギング設定を記述するには、生成するさまざまなオブジェクトと、それらのつながりを列挙しなければなりません。例えば、 'console' という名前のハンドラを生成し、'startup' という名前のロガーがメッセージを 'console' ハンドラに送るというようなことを記述し...の キーは、ハンドラのコンストラクタにキーワード引数として渡されます。例えば、以下のコード片が与えられたとすると: handlers : console : class : logging.StreamHandler formatter : brief level : INFO filters : [ allow_foo ] stream : ext://sys.stdout file : cl...: logging.handlers.RotatingFileHandler formatter : precise filename : logconfig.log maxBytes : 1024 backupCount : 3 id が console であるハンドラが、 sys.stdout を根底のストリームにして、 logging.StreamHandler としてインスタンス化されます。id が file で... - https://man.mtool.work/python/3.14/library/logging.config.html
- readline --- GNU readline のインターフェース 8250
- readline --- GNU readline のインターフェース readline モジュールには、Python インタープリタでの補完や履歴ファイルの読み書きを容易にする関数が定義されています。 このモジュールは直接使うことも、対話プロンプトで Python 識別子の補完を提供する r
...istory_file ( new_h_len - prev_h_len , histfile ) atexit . register ( save , h_len , histfile ) 次の例では code.InteractiveConsole クラスを拡張し、履歴の保存・復旧をサポートします。 import atexit import code import os import readline class HistoryConsol...e ( code . InteractiveConsole ): def __init__ ( self , locals = None , filename = "<console>" , histfile = os . path . expanduser ( "~/.console-history"...)): code . InteractiveConsole . __init__ ( self , locals , filename ) self . init_history ( histfile ) def init_history ( self , histfile ): readline .... - https://man.mtool.work/python/3.14/library/readline.html
- subprocess --- サブプロセス管理 8250
- subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー
...ジェクトにします。 内部の CreateProcess 関数に渡されます。 creationflags には、次のフラグを 1 つ以上指定できます: CREATE_NEW_CONSOLE CREATE_NEW_PROCESS_GROUP ABOVE_NORMAL_PRIORITY_CLASS BELOW_NORMAL_PRIORITY_CLASS HIGH_PRIORITY_CLASS IDLE_PRIORITY_CLASS N...動時にマウスカーソルを変更しないよう指定する、 STARTUPINFO.dwFlags の値です。 Added in version 3.13. subprocess. CREATE_NEW_CONSOLE 新しいプロセスが、親プロセスのコンソールを継承する (デフォルト) のではなく、新しいコンソールを持ちます。 subprocess. CREAT...ことを指定する Popen creationflags パラメーターです。このフラグは、サブプロセスで os.kill() を使うのに必要です。 CREATE_NEW_CONSOLE が指定されていたら、このフラグは無視されます。 subprocess. ABOVE_NORMAL_PRIORITY_CLASS 新しいプロセスの優先度を通常より高く... - https://man.mtool.work/python/3.14/library/subprocess.html
- sys --- システム固有のパラメーターと関数 7984
- sys --- システム固有のパラメーターと関数 このモジュールは、インタープリタが使用または管理する変数と、インタープリタに密接に関わる関数を提供します。 常に利用できます。 特に明記されていない限り、すべての変数は読み出し専用です。 sys. abiflags
...グとエラー処理方式は、 PyConfig.stdio_encoding と PyConfig.stdio_errors から初期化します。 On Windows, UTF-8 is used for the console device. Non-character devices such as disk files and pipes use the system locale encoding (i.e. the ANSI codepage). Non-co...nsole character devices such as NUL (i.e. where isatty() returns True ) use the value of the console input and output codepages at startup, respectively for stdin and stdout/stderr. This defaults to the system locale encodi...ng if the process is not initially attached to a console. Python の起動前に環境変数 PYTHONLEGACYWINDOWSSTDIO を設定すると、コンソール固有の動作を変更できます。 その場合は、ほかの文... - https://man.mtool.work/python/3.14/library/sys.html
- Python で Curses プログラミング 7735
- Python で Curses プログラミング Author : A.M. Kuchling, Eric S. Raymond Release : 2.04 概要 このドキュメントでは curses 拡張モジュールでテキストモードディスプレイを制御する方法について記述します。 curses ってなに? curses ライブラリは、VT100
...his lets you change color 1, which is usually red, to purple or blue or any other color you like. Unfortunately, the Linux console doesn't support this, so I'm unable to try it out, and can't provide any examples. You can check if your terminal can do t...page ncurses の FAQ "Use curses... don't swear" : curses または Urwid を使って端末を制御する PyCon 2013 講演ビデオです。 "Console Applications with Urwid" : Urwid で書かれたいくつかのアプリケーションを紹介する PyCon CA 2012 の講演動画。 他のマニュアルの... - https://man.mtool.work/python/3.14/howto/curses.html
- What's New In Python 3.2 7735
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...-15s : %(message)s " }, "full" : { "format" : " %(asctime)s %(name)-15s %(levelname)-8s %(message)s " } }, "handlers" : { "console" : { "class" : "logging.StreamHandler" , "formatter" : "brief" , "level" : "INFO" , "stream" : "ext://sys.stdout" }, "cons...ormatter" : "full" , "level" : "ERROR" , "stream" : "ext://sys.stderr" } }, "root" : { "level" : "DEBUG" , "handlers" : [ "console" , "console_priority" ]}} その辞書が conf.json ファイルに格納されているのであれば、コードからこのように呼び出してロード出来... - https://man.mtool.work/python/3.14/whatsnew/3.2.html