Results of 1 - 10 of about 47 for required (0.009 sec.)
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 13270
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密
...arser. add_argument ( name or flags... , * [ , action ] [ , nargs ] [ , const ] [ , default ] [ , type ] [ , choices ] [ , required ] [ , help ] [ , metavar ] [ , dest ] [ , deprecated ] ) 1つのコマンドライン引数がどう解析されるかを定義します。各引数につ...も存在しない場合に利用される値。 type - コマンドライン引数が変換されるべき型。 choices - 引数として許される値のシーケンス。 required - コマンドラインオプションが省略可能かどうか (オプション引数のみ)。 help - 引数が何なのかを示す簡潔な説明。 metavar - 使用...FOO') >>> parser . parse_args ([ '--foo' , 'FOO' ]) usage: PROG [-h] [-f FOO] bar PROG: error: the following arguments are required: bar デフォルトでは、 argparse が引数の内部的な名前と表示名を自動的に決めるため、追加の設定は必要ありません。 そのため、 d... - https://man.mtool.work/python/3.14/library/argparse.html
- http --- HTTP モジュール群 12692
- http --- HTTP モジュール群 ソースコード: Lib/http/__init__.py http は、HyperText Transfer Protocol を扱ういくつかのモジュールをまとめたパッケージです。 http.client は低水準のHTTPプロトコルのクライアントです。高水準の URL を開く操作には urll
...BAD_REQUEST HTTP Semantics RFC 9110 , Section 15.5.1 401 UNAUTHORIZED HTTP Semantics RFC 9110 , Section 15.5.2 402 PAYMENT_REQUIRED HTTP Semantics RFC 9110 , Section 15.5.3 403 FORBIDDEN HTTP Semantics RFC 9110 , Section 15.5.4 404 NOT_FOUND HTTP Semanti...P Semantics RFC 9110 , Section 15.5.6 406 NOT_ACCEPTABLE HTTP Semantics RFC 9110 , Section 15.5.7 407 PROXY_AUTHENTICATION_REQUIRED HTTP Semantics RFC 9110 , Section 15.5.8 408 REQUEST_TIMEOUT HTTP Semantics RFC 9110 , Section 15.5.9 409 CONFLICT HTTP Se...mantics RFC 9110 , Section 15.5.10 410 GONE HTTP Semantics RFC 9110 , Section 15.5.11 411 LENGTH_REQUIRED HTTP Semantics RFC 9110 , Section 15.5.12 412 PRECONDITION_FAILED HTTP Semantics RFC 9110 , Section 15.5.13 413 CONTENT_TO... - https://man.mtool.work/python/3.14/library/http.html
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー 11339
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー Source code: Lib/ssl.py このモジュールは、クライアント側とサーバー側の両方のネットワークソケットで Transport Layer Security (「Secure Sockets Layer」としてもよく知られています) による暗号化と
...認証を行わない暗号スイートを除いた、強度の高い暗号スイートを選びます。 purpose に SERVER_AUTH を渡すと、 verify_mode を CERT_REQUIRED に設定します。 さらに、 cafile 、 capath 、 cadata のいずれかが指定されていればその CA 証明書を読み込み、指定されていなけれ...照してください。 ssl. CERT_OPTIONAL SSLContext.verify_mode に指定できる値です。 クライアントモードでは CERT_OPTIONAL は CERT_REQUIRED と同じ意味になります。 クライアント側のソケットでは、代わりに CERT_REQUIRED を使うことをお勧めします。 サーバーモードでは、...中断します。 この設定を使うには、有効な CA 証明書の組を SSLContext.load_verify_locations() に渡す必要があります。 ssl. CERT_REQUIRED SSLContext.verify_mode に指定できる値です。 このモードではソケットの接続相手の証明書を必須とし、証明書が提供されない場合や... - https://man.mtool.work/python/3.14/library/ssl.html
- email: 使用例 10169
- email : 使用例 ここでは email パッケージを使って電子メールメッセージを読む・書く・送信するいくつかの例を紹介します。より複雑な MIME メッセージについても扱います。 まず、単純なテキストメッセージを作成して送信する方法を見てみましょう (テキスト
...mposed message to FILE instead of sending the message to the SMTP server.""" ) parser . add_argument ( '-s' , '--sender' , required = True , help = 'The value of the From: header (required)' ) parser . add_argument ( '-r' , '--recipient' , required = Tru..., action = 'append' , metavar = 'RECIPIENT' , default = [], dest = 'recipients' , help = 'A To: header value (at least one required)' ) args = parser . parse_args () directory = args . directory if not directory : directory = '.' # メッセージを作成します...description = """ \ Unpack a MIME message into a directory of files. """ ) parser . add_argument ( '-d' , '--directory' , required = True , help = """Unpack the MIME message into the named directory, which will be created if it doesn't already exist."""... - https://man.mtool.work/python/3.14/library/email.examples.html
- typing --- 型ヒントのサポート 9987
- typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。
...。 Added in version 3.8. バージョン 3.13 で変更: Final を ClassVar の内側に入れることも、その逆も可能になりました。 typing. Required TypedDict のキーが必須であることを示すための特殊な型構築子です。 主に total=False の TypedDict で役立ちます。 詳細は Typed...Dict と PEP 655 を参照してください。 Added in version 3.11. typing. NotRequired TypedDict のキーが存在しない場合もあることを示すための特殊な型構築子です。 より詳しくは、 TypedDict と PEP 655 を参照してく...pedDict ( 'Definition' , { '__schema' : str }) # 名前が変換されない デフォルトでは TypedDict のすべてのキーが必須です。 NotRequired を使うと、個々のキーを必須でないものとして指定できます。 class Point2D ( TypedDict ): x : int y : int label : NotRequired... - https://man.mtool.work/python/3.14/library/typing.html
- collections.abc --- コンテナの抽象基底クラス 9211
- collections.abc --- コンテナの抽象基底クラス Added in version 3.3: 以前はこのモジュールは collections モジュールの一部でした。 ソースコード: Lib/_collections_abc.py このモジュールは、 抽象基底クラス を提供します。抽象基底クラスは、クラスが特
...メソッドも必要に応じて追加できます: class C ( Sequence ): # Direct inheritance def __init__ ( self ): ... # Extra method not required by the ABC def __getitem__ ( self , index ): ... # Required abstract method def __len__ ( self ): ... # Required abstract...の他の部分から自動的に導かれるメソッドは例外です: class D : # No inheritance def __init__ ( self ): ... # Extra method not required by the ABC def __getitem__ ( self , index ): ... # Abstract method def __len__ ( self ): ... # Abstract method def count (... - https://man.mtool.work/python/3.14/library/collections.abc.html
- errno --- 標準の errno システムシンボル 8618
- errno --- 標準の errno システムシンボル このモジュールから標準の errno システムシンボルを取得することができます。個々のシンボルの値は errno に対応する整数値です。これらのシンボルの名前は、 linux/include/errno.h から借用されており、網羅的なは
...rror に対応します。 errno. EFAULT 不正なアドレスです (Bad address) errno. ENOTBLK ブロックデバイスが必要です (Block device required) errno. EBUSY そのデバイスまたはリソースは使用中です (Device or resource busy) errno. EEXIST ファイルが存在します (File ex...トに対するソケット操作です (Socket operation on non-socket) errno. EDESTADDRREQ 目的アドレスが必要です (Destination address required) errno. EMSGSIZE メッセージが長すぎます (Message too long) errno. EPROTOTYPE ソケットに対して不正なプロトコル型です (Proto...(No medium found)。 errno. EMEDIUMTYPE 媒体の種類が違います (Wrong medium type)。 errno. ENOKEY 必要な鍵が利用できません (Required key not available)。 errno. EKEYEXPIRED 鍵の有効期限が切れています (Key has expired)。 errno. EKEYREVOKED 鍵が取り消されて... - https://man.mtool.work/python/3.14/library/errno.html
- 4. Windows で Python を使う 8618
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...py commands do not seem to be working, see the Troubleshooting section below. There are sometimes additional manual steps required to configure your PC. Python インストールマネージャを使う以外に、Python を NuGet パッケージとして入手することもできます。...定にこの設定があれば、値が false の場合でも、インデックス内の設定は無視します。 As well as requiring a valid signature, the required_root_subject and required_publisher_subject settings can further restrict acceptable signatures based on the certificate S...ed). Typical attributes are CN= for the common name, O= for the organization, and C= for the publisher's country. 最後に、 required_publisher_eku 設定では、発行元の証明書に特定の拡張キー使用法 (Enhanced Key Usage、EKU) が割り当てられていることを要求できま... - https://man.mtool.work/python/3.14/using/windows.html
- Argparse チュートリアル 8041
- Argparse チュートリアル author : Tshepang Mbambo このチュートリアルでは、 argparse を丁寧に説明します。 argparse は、Python 標準ライブラリの一部であり、おすすめのコマンドライン引数の解析モジュールです。 注釈 標準ライブラリには、コマンドライ
...ho ) このコードを実行してみましょう: $ python prog.py usage: prog.py [-h] echo prog.py: error: the following arguments are required: echo $ python prog.py --help usage: prog.py [-h] echo positional arguments: echo options: -h, --help show this help messa...) 出力は以下のようになります: $ python prog.py usage: prog.py [-h] [-v] square prog.py: error: the following arguments are required: square $ python prog.py 4 16 $ python prog.py 4 --verbose the square of 4 equals 16 $ python prog.py --verbose 4 the squa...) else : print ( answer ) 出力: $ python prog.py usage: prog.py [-h] [-v] x y prog.py: error: the following arguments are required: x, y $ python prog.py -h usage: prog.py [-h] [-v] x y positional arguments: x the base y the exponent options: -h, --help... - https://man.mtool.work/python/3.14/howto/argparse.html
- html.parser --- HTML と XHTML のシンプルなパーサー 8041
- html.parser --- HTML と XHTML のシンプルなパーサー ソースコード: Lib/html/parser.py このモジュールでは HTMLParser クラスを定義します。このクラスは HTML (ハイパーテキスト記述言語、HyperText Mark-up Language) および XHTML で書式化されているテ
...( checked のような) 値のない属性では value として None が返されます。 >>> parser . feed ( "<input TYPE='checkbox' checked required='' disabled=disabled>" ) Start tag: input attr: ('type', 'checkbox') attr: ('checked', None) attr: ('required', '') attr:... - https://man.mtool.work/python/3.14/library/html.parser.html