per page, with , order by , clip by
Results of 1 - 10 of about 28 for guess (0.006 sec.)
mimetypes --- ファイル名を MIME タイプへマップする — Python 3.14.8 ドキュメント 13879
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » mimetypes --- ファイル名を MIME タイプへマップする テーマ 自動 ライト ダーク | mimetypes --- ファイ ... くても、もしこれらの関数が、 init() がセットアップする情報に依存していれば、これらの関数は、 init() を呼びます。 mimetypes. guess_type ( url , strict = True ) ¶ url で与えられるファイル名あるいは URL に基づいて、ファイルの型を推定します。URL は文字列ま ... ded support for url being a path-like object . Soft deprecated since version 3.13: Passing a file path instead of URL. Use guess_file_type() for this. mimetypes. guess_file_type ( path , * , strict = True ) ¶ Guess the type of a file based on its path ... , given by path . Similar to the guess_type() function, but accepts a path instead of URL. Path can be a string, a bytes object or a path-like object . Added in ...
https://man.mtool.work/python/3.14/library/mimetypes.html
mimetypes --- ファイル名を MIME タイプへマップする — Python 3.14.8 ドキュメント 13879
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » mimetypes --- ファイル名を MIME タイプへマップする テーマ 自動 ライト ダーク | mimetypes --- ファイ ... くても、もしこれらの関数が、 init() がセットアップする情報に依存していれば、これらの関数は、 init() を呼びます。 mimetypes. guess_type ( url , strict = True ) ¶ url で与えられるファイル名あるいは URL に基づいて、ファイルの型を推定します。URL は文字列ま ... ded support for url being a path-like object . Soft deprecated since version 3.13: Passing a file path instead of URL. Use guess_file_type() for this. mimetypes. guess_file_type ( path , * , strict = True ) ¶ Guess the type of a file based on its path ... , given by path . Similar to the guess_type() function, but accepts a path instead of URL. Path can be a string, a bytes object or a path-like object . Added in ...
https://man.mtool.work/python/3.14/library/mimetypes.html
email: 使用例 — Python 3.14.8 ドキュメント 8930
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email : 使用例 テーマ 自動 ライト ダーク | em ... n a MIME-aware mail reader. \n ' # Open the files in binary mode. You can also omit the subtype # if you want MIMEImage to guess it. for file in pngfiles : with open ( file , 'rb' ) as fp : img_data = fp . read () msg . add_attachment ( img_data , mai ... です: [ 1 ] #!/usr/bin/env python3 """Send the contents of a directory as a MIME message.""" import os import smtplib # For guessing MIME type based on file name extension import mimetypes from argparse import ArgumentParser from email.message import E ... s . listdir ( directory ): path = os . path . join ( directory , filename ) if not os . path . isfile ( path ): continue # Guess the content type based on the file's extension. Encoding # will be ignored, although we should check for simple things lik ...
https://man.mtool.work/python/3.14/library/email.examples.html
email: 使用例 — Python 3.14.8 ドキュメント 8930
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email : 使用例 テーマ 自動 ライト ダーク | em ... n a MIME-aware mail reader. \n ' # Open the files in binary mode. You can also omit the subtype # if you want MIMEImage to guess it. for file in pngfiles : with open ( file , 'rb' ) as fp : img_data = fp . read () msg . add_attachment ( img_data , mai ... です: [ 1 ] #!/usr/bin/env python3 """Send the contents of a directory as a MIME message.""" import os import smtplib # For guessing MIME type based on file name extension import mimetypes from argparse import ArgumentParser from email.message import E ... s . listdir ( directory ): path = os . path . join ( directory , filename ) if not os . path . isfile ( path ): continue # Guess the content type based on the file's extension. Encoding # will be ignored, although we should check for simple things lik ...
https://man.mtool.work/python/3.14/library/email.examples.html
http.server --- HTTP サーバー — Python 3.14.8 ドキュメント 8373
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.server --- HTTP サーバー テーマ 自動 ライト ダーク | http.server --- HTTP サーバー ¶ ソー ... st, and the file was not modified after this time, a 304 , 'Not Modified' response is sent. Otherwise, the content type is guessed by calling the guess_type() method, which in turn uses the extensions_map variable, and the file contents are returned. ... r) or None to indicate an error, in which case the caller has nothing further to do. In either case, the headers are sent. guess_type ( path ) ¶ Guess the type of the file at the given path . This returns a string of the form type/subtype , usable for ... ontent-type header. The default implementation looks the file's extension up in extensions_map , falling back to mimetypes.guess_file_type() and then to 'application/octet-stream' . バージョン 3.13 で変更: Add mimetypes.guess_file_type() as a fallback ...
https://man.mtool.work/python/3.14/library/http.server.html
http.server --- HTTP サーバー — Python 3.14.8 ドキュメント 8373
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.server --- HTTP サーバー テーマ 自動 ライト ダーク | http.server --- HTTP サーバー ¶ ソー ... st, and the file was not modified after this time, a 304 , 'Not Modified' response is sent. Otherwise, the content type is guessed by calling the guess_type() method, which in turn uses the extensions_map variable, and the file contents are returned. ... r) or None to indicate an error, in which case the caller has nothing further to do. In either case, the headers are sent. guess_type ( path ) ¶ Guess the type of the file at the given path . This returns a string of the form type/subtype , usable for ... ontent-type header. The default implementation looks the file's extension up in extensions_map , falling back to mimetypes.guess_file_type() and then to 'application/octet-stream' . バージョン 3.13 で変更: Add mimetypes.guess_file_type() as a fallback ...
https://man.mtool.work/python/3.14/library/http.server.html
索引 — Python 3.14.8 ドキュメント 8176
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – G gaierror gamma() (math モジュール) gammavariate() (random モジュール) garbage (gc モジュール) garbage collection , [1] gather() (asy ... のメソッド) grp module GS (curses.ascii モジュール) Gt (ast のクラス) gt() (operator モジュール) GtE (ast のクラス) guard guess_all_extensions() (mimetypes モジュール) (mimetypes.MimeTypes のメソッド) guess_extension() (mimetypes モジュール) (mimetyp ... es.MimeTypes のメソッド) guess_file_type() (mimetypes モジュール) (mimetypes.MimeTypes のメソッド) guess_scheme() (wsgiref.util モジュール) guess_type() ...
https://man.mtool.work/python/3.14/genindex-G.html
索引 — Python 3.14.8 ドキュメント 8176
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – G gaierror gamma() (math モジュール) gammavariate() (random モジュール) garbage (gc モジュール) garbage collection , [1] gather() (asy ... のメソッド) grp module GS (curses.ascii モジュール) Gt (ast のクラス) gt() (operator モジュール) GtE (ast のクラス) guard guess_all_extensions() (mimetypes モジュール) (mimetypes.MimeTypes のメソッド) guess_extension() (mimetypes モジュール) (mimetyp ... es.MimeTypes のメソッド) guess_file_type() (mimetypes モジュール) (mimetypes.MimeTypes のメソッド) guess_scheme() (wsgiref.util モジュール) guess_type() ...
https://man.mtool.work/python/3.14/genindex-G.html
wsgiref --- WSGI ユーティリティとリファレンス実装 — Python 3.14.8 ドキュメント 7767
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » wsgiref --- WSGI ユーティリティとリファレンス実装 テーマ 自動 ライト ダーク | wsgiref --- WSGI ... 様については PEP 3333 を、型アノテーションに使える型エイリアスについては WSGIEnvironment を参照してください。 wsgiref.util. guess_scheme ( environ ) ¶ environ 辞書の HTTPS 環境変数を調べることで wsgi.url_scheme が "http" か "https" のどちらであるべきか ... き換えられました。 get_scheme ( ) ¶ 現在のリクエストで使われている URL スキームを返します。デフォルト実装は wsgiref.util の guess_scheme() を使い、現在のリクエストの environ 変数に基づいてスキームが"http" か "https" かを推測します。 setup_environ ( ) ¶ ... rver. Takes a path to serve from and an optional port number (defaults to 8000), then tries to serve files. MIME types are guessed from the file names, 404 errors are raised if the file is not found. """ import mimetypes import os import sys from wsgi ...
https://man.mtool.work/python/3.14/library/wsgiref.html
What's New In Python 3.13 — Python 3.14.8 ドキュメント 7767
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py ... iplyAdd" operation for special cases. (Contributed by Mark Dickinson and Victor Stinner in gh-73468 .) mimetypes ¶ Add the guess_file_type() function to guess a MIME type from a filesystem path. Using paths with guess_type() is now soft deprecated . ( ... removed in Python 3.15. (Contributed by Gregory P. Smith in gh-109096 .) mimetypes : Soft-deprecate file path arguments to guess_type() , use guess_file_type() instead. (Contributed by Serhiy Storchaka in gh-66543 .) re : Deprecate passing the optiona ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
PREV 1 2 3 NEXT