Results of 1 - 10 of about 26 for BytesGenerator (0.004 sec.)
- email.generator: Generating MIME documents — Python 3.14.8 ドキュメント 13853
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.generator : Generating MIME documents テ
...at is, parsing the serialized byte stream via the BytesParser class and then regenerating the serialized byte stream using BytesGenerator should produce output identical to the input [ 1 ] . (On the other hand, using the generator on an EmailMessage constructe...ages Generator disables header folding for message parts of type multipart/signed and all subparts. class email.generator. BytesGenerator ( outfp , mangle_from_ = None , maxheaderlen = None , * , policy = None ) ¶ Return a BytesGenerator object that will write...= False , linesep = None ) ¶ msg を基点とするメッセージオブジェクト構造体の文字表現を出力します。出力先のファイルにはこの BytesGenerator インスタンスが作成されたときに指定されたものが使われます。 If the policy option cte_type is 8bit (the default), copy any h... - https://man.mtool.work/python/3.14/library/email.generator.html
- email.generator: Generating MIME documents — Python 3.14.8 ドキュメント 12910
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.generator : Generating MIME documents テ
...at is, parsing the serialized byte stream via the BytesParser class and then regenerating the serialized byte stream using BytesGenerator should produce output identical to the input [ 1 ] . (On the other hand, using the generator on an EmailMessage constructe...ages Generator disables header folding for message parts of type multipart/signed and all subparts. class email.generator. BytesGenerator ( outfp , mangle_from_ = None , maxheaderlen = None , * , policy = None ) ¶ Return a BytesGenerator object that will write...= False , linesep = None ) ¶ msg を基点とするメッセージオブジェクト構造体の文字表現を出力します。出力先のファイルにはこの BytesGenerator インスタンスが作成されたときに指定されたものが使われます。 If the policy option cte_type is 8bit (the default), copy any h... - https://man.mtool.work/python/3.14/library/email.generator.html
- email.message.Message: compat32 API を使用した電子メールメッセージの表現 — Pyth... 9753
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message.Message : compat32 API を使用し
...FC standards, the non-compliant data will be replaced by Unicode "unknown character" code points. (See also as_bytes() and BytesGenerator .) バージョン 3.4 で変更: policy キーワード引数が追加されました。 __str__ ( ) ¶ Equivalent to as_string() . Allows str(msg...his can be used to control some of the formatting produced by the method, since the specified policy will be passed to the BytesGenerator . もし、文字列への変換を完全に行うためにデフォルト値を埋める必要がある場合、メッセージのフラット化は Message の変更を引き起...o the mangling of lines that begin with From that is required by the Unix mbox format. For more flexibility, instantiate a BytesGenerator instance and use its flatten() method directly. For example: from io import BytesIO from email.generator import BytesGener... - https://man.mtool.work/python/3.14/library/email.compat32-message.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 9373
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...e system sendmail program on a Unix system: >>> from email import message_from_binary_file >>> from email.generator import BytesGenerator >>> from email import policy >>> from subprocess import Popen , PIPE >>> with open ( 'mymsg.txt' , 'rb' ) as f : ... msg =...f , policy = policy . default ) ... >>> p = Popen ([ 'sendmail' , msg [ 'To' ] . addresses [ 0 ]], stdin = PIPE ) >>> g = BytesGenerator ( p . stdin , policy = msg . policy . clone ( linesep = ' \r\n ' )) >>> g . flatten ( msg ) >>> p . stdin . close () >>> r...c = p . wait () Here we are telling BytesGenerator to use the RFC correct line separator characters when creating the binary string to feed into sendmail's stdin , where the... - https://man.mtool.work/python/3.14/library/email.policy.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 9373
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...e system sendmail program on a Unix system: >>> from email import message_from_binary_file >>> from email.generator import BytesGenerator >>> from email import policy >>> from subprocess import Popen , PIPE >>> with open ( 'mymsg.txt' , 'rb' ) as f : ... msg =...f , policy = policy . default ) ... >>> p = Popen ([ 'sendmail' , msg [ 'To' ] . addresses [ 0 ]], stdin = PIPE ) >>> g = BytesGenerator ( p . stdin , policy = msg . policy . clone ( linesep = ' \r\n ' )) >>> g . flatten ( msg ) >>> p . stdin . close () >>> r...c = p . wait () Here we are telling BytesGenerator to use the RFC correct line separator characters when creating the binary string to feed into sendmail's stdin , where the... - https://man.mtool.work/python/3.14/library/email.policy.html
- email.message.Message: compat32 API を使用した電子メールメッセージの表現 — Pyth... 9191
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message.Message : compat32 API を使用し
...FC standards, the non-compliant data will be replaced by Unicode "unknown character" code points. (See also as_bytes() and BytesGenerator .) バージョン 3.4 で変更: policy キーワード引数が追加されました。 __str__ ( ) ¶ Equivalent to as_string() . Allows str(msg...his can be used to control some of the formatting produced by the method, since the specified policy will be passed to the BytesGenerator . もし、文字列への変換を完全に行うためにデフォルト値を埋める必要がある場合、メッセージのフラット化は Message の変更を引き起...o the mangling of lines that begin with From that is required by the Unix mbox format. For more flexibility, instantiate a BytesGenerator instance and use its flatten() method directly. For example: from io import BytesIO from email.generator import BytesGener... - https://man.mtool.work/python/3.14/library/email.compat32-message.html
- email.contentmanager: Managing MIME Content — Python 3.14.8 ドキュメント 7885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.contentmanager : Managing MIME Content
...釈 A cte of binary does not actually work correctly yet. The EmailMessage object as modified by set_content is correct, but BytesGenerator does not serialize it correctly. If disposition is set, use it as the value of the Content-Disposition header. If not spec... - https://man.mtool.work/python/3.14/library/email.contentmanager.html
- email.message: Representing an email message — Python 3.14.8 ドキュメント 7885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message : Representing an email message
...his can be used to control some of the formatting produced by the method, since the specified policy will be passed to the BytesGenerator . もし、文字列への変換を完全に行うためにデフォルト値を埋める必要がある場合、メッセージのフラット化は EmailMessage の変更を...l way to serialize messages in your application, especially if you are dealing with multiple messages. See email.generator.BytesGenerator for a more flexible API for serializing messages. __bytes__ ( ) ¶ Equivalent to as_bytes() . Allows bytes(msg) to produce... - https://man.mtool.work/python/3.14/library/email.message.html
- email.contentmanager: Managing MIME Content — Python 3.14.8 ドキュメント 7885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.contentmanager : Managing MIME Content
...釈 A cte of binary does not actually work correctly yet. The EmailMessage object as modified by set_content is correct, but BytesGenerator does not serialize it correctly. If disposition is set, use it as the value of the Content-Disposition header. If not spec... - https://man.mtool.work/python/3.14/library/email.contentmanager.html
- email.message: Representing an email message — Python 3.14.8 ドキュメント 7885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message : Representing an email message
...his can be used to control some of the formatting produced by the method, since the specified policy will be passed to the BytesGenerator . もし、文字列への変換を完全に行うためにデフォルト値を埋める必要がある場合、メッセージのフラット化は EmailMessage の変更を...l way to serialize messages in your application, especially if you are dealing with multiple messages. See email.generator.BytesGenerator for a more flexible API for serializing messages. __bytes__ ( ) ¶ Equivalent to as_bytes() . Allows bytes(msg) to produce... - https://man.mtool.work/python/3.14/library/email.message.html