Results of 1 - 10 of about 27 for archive (0.007 sec.)
- shutil --- 高水準のファイル操作 14269
- shutil --- 高水準のファイル操作 ソースコード: Lib/shutil.py shutil モジュールは、ファイルやファイルの集合に対するさまざまな高水準の操作を提供します。 特に、ファイルのコピーや削除を行う関数が用意されています。 個々のファイルを操作する場合は
...の読み書きの高水準なユーティリティも提供されています。これらは zipfile 、 tarfile モジュールに依拠しています。 shutil. make_archive ( base_name , format [ , root_dir [ , base_dir [ , verbose [ , dry_run [ , owner [ , group [ , logger ] ] ] ] ] ] ] ) アー...mpression.zstd モジュールを利用できる場合) のいずれかです。 root_dir is a directory that will be the root directory of the archive, all paths in the archive will be relative to it; for example, we typically chdir into root_dir before creating the archiv...s the directory where we start archiving from; i.e. base_dir will be the common prefix of all files and directories in the archive. base_dir must be given relative to root_dir . See base_dir を使ったアーカイブ化の例 for how to use base_dir and root_dir... - https://man.mtool.work/python/3.14/library/shutil.html
- zipapp --- 実行可能な Python zip アーカイブを管理する 11751
- zipapp --- 実行可能な Python zip アーカイブを管理する Added in version 3.5. ソースコード: Lib/zipapp.py このモジュールは Python コードを含む zip ファイルの作成を行うツールを提供します。 zip ファイルは Python インタープリタで直接実行すること
...-h , --help 簡単な使用法を表示して終了します。 Python API このモジュールは 2 つの簡便関数を定義しています: zipapp. create_archive ( source , target = None , interpreter = None , main = None , filter = None , compressed = False ) source からアプリケーシ...をコピーする場合、この引数は効果がありません。 source または target へファイルオブジェクトを指定した場合、 caller が create_archive の呼出し後にオブジェクトを閉じます。 既存のアーカイブをコピーする場合、渡すファイルオブジェクトに必要なのは、読み込み元なら...ドを備えていなければなりません。 バージョン 3.7 で変更: filter と compressed 引数を追加しました。 zipapp. get_interpreter ( archive ) アーカイブの先頭の #! 行で指定されたインタープリタを返します。 #! 行がない場合は None を返します。 archive 引数には、ファ... - https://man.mtool.work/python/3.14/library/zipapp.html
- zipimport --- Zip アーカイブからモジュールをインポートする 11619
- zipimport --- Zip アーカイブからモジュールをインポートする ソースコード: Lib/zipimport.py ZIP 形式のアーカイブから Python モジュール ( *.py 、 *.pyc ) とパッケージをインポートできるようにするモジュールです。 通常は zipimport モジュールを明示
...きます。 zipimporter オブジェクト zipimporter は ZIP ファイルを import するためのクラスです。 class zipimport. zipimporter ( archivepath ) 新たな zipimporter インスタンスを生成します。 archivepath は ZIP ファイルへのパスまたは ZIP ファイル中の特定のパスへ...のパスでなければなりません。たとえば、 foo/bar.zip/lib という archivepath の場合、 foo/bar.zip という ZIP ファイルの中の lib ディレクトリにあるモジュールを (存在するものとして) 検索します。 ar...nvalidate_caches ( ) ZIP アーカイブ内のファイルに関する情報を保持する内部キャッシュをクリアします。 Added in version 3.10. archive importer に関連付けられた ZIP ファイルのファイル名です。サブパスは含まれません。 prefix モジュールを検索する ZIP ファイル中... - https://man.mtool.work/python/3.14/library/zipimport.html
- zipfile --- ZIP アーカイブの処理 9348
- zipfile --- ZIP アーカイブの処理 Source code: Lib/zipfile/ ZIP は一般によく知られているアーカイブ (書庫化) および圧縮の標準ファイルフォーマットです。このモジュールでは ZIP 形式のファイルの作成、読み書き、追記、書庫内のファイル一覧の作成を行
...公開する compress_level 属性を追加しました。 後方互換性のため、以前の保護された名前もプロパティとして引き続き使えます。 _for_archive ( archive ) ZipFile.writestr() で使う適切なデフォルト値を date_time 、圧縮関連の属性、外部属性に設定します。 呼び出しを連結...して、 bytes オブジェクトの pwd を設定します。 ZipFile. read ( name , pwd = None ) Return the bytes of the file name in the archive. name is the name of the file in the archive, or a ZipInfo object. The archive must be open for read or append. pwd is the...いました。 ZipFile. writestr ( zinfo_or_arcname , data , compress_type = None , compresslevel = None ) Write a file into the archive. The contents is data , which may be either a str or a bytes instance; if it is a str , it is encoded as UTF-8 first. zinf... - https://man.mtool.work/python/3.14/library/zipfile.html
- 監査イベント表 8377
- 監査イベント表 この表は、 CPython ランタイムと標準ライブラリ全体で sys.audit() または PySys_Audit() の呼び出しによって送出されるすべてのイベントを含んでいます。これらの呼び出しは、 3.8 以降に追加されました ( PEP 578 を参照) 。 これらのイベン
...[1] [2] [3] shutil.copymode src , dst [1] [2] shutil.copystat src , dst [1] [2] shutil.copytree src , dst [1] shutil.make_archive base_name , format , root_dir , base_dir [1] shutil.move src , dst [1] shutil.rmtree path , dir_fd [1] shutil.unpack_archi... - https://man.mtool.work/python/3.14/library/audit_events.html
- Pythonモジュール索引 8262
- Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i
...l for detecting white space related problems in Python source files in a directory tree. tarfile Read and write tar-format archive files. telnetlib 非推奨: Removed in 3.13. tempfile Generate temporary files and directories. termios POSIX style tty contr...pc.client XML-RPC client access. xmlrpc.server Basic XML-RPC server implementations. z zipapp Manage executable Python zip archives zipfile Read and write ZIP-format archive files. zipimport Support for importing Python modules from ZIP archives. zlib L... - https://man.mtool.work/python/3.14/py-modindex.html
- 10. 標準ライブラリをひとめぐり 8146
- 10. 標準ライブラリをひとめぐり 10.1. オペレーティングシステムとのインターフェース os モジュールは、オペレーティングシステムと対話するための多くの関数を提供しています: >>> import os >>> os . getcwd () # Return the current working directory '
...トリの管理作業に使いやすい高水準のインターフェースを提供しています。 >>> import shutil >>> shutil . copyfile ( 'data.db' , 'archive.db' ) 'archive.db' >>> shutil . move ( '/build/executables' , 'installdir' ) 'installdir' 10.2. ファイルのワイルドカード g... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- What's New In Python 3.2 8146
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...イルだけを保存 ... tarinfo . uname = 'monty' # ユーザー名を置き換える ... return tarinfo >>> with tarfile . open ( name = 'myarchive.tar.gz' , mode = 'w:gz' ) as tf : ... for filename in glob . glob ( '*.txt' ): ... tf . add ( filename , filter = myfilter...カイブファイルフォーマットを登録する関数もあります (例えば xz 圧縮の tar やカスタムフォーマット)。 そのメインとなるのが make_archive() と unpack_archive() です。デフォルトではカレントディレクトリ ( os.chdir() で変えれます) とそのサブディレクトリの両方を処...そのままにされます)。 >>> import shutil , pprint >>> os . chdir ( 'mydata' ) # 元のディレクトリへ移動 >>> f = shutil . make_archive ( '/var/backup/mydata' , ... 'zip' ) # 現在のディレクトリをアーカイブ化 >>> f # アーカイブの名前を表示 '/var/backup/mydata... - https://man.mtool.work/python/3.14/whatsnew/3.2.html
- What's New in Python 2.5 7899
- What's New in Python 2.5 著者 : A.M. Kuchling この記事では Python 2.5 の新機能を説明します。 Python 2.5 の最終リリースは 2006 年 8 月に予定されており、 PEP 356 にリリース計画が記載されています。 Python 2.5 は 2006 年 9 月 19 日にリリースされ
...よる PEP 325 で提案されました。 https://en.wikipedia.org/wiki/Coroutine コルーチンに関する WikiPedia エントリ。 https://web.archive.org/web/20160321211320/http://www.sidhe.org/~dan/blog/archives/000178.html Dan Sugalski による、Perl の視点からみたコルーチ...、拡張モジュールの代わりに ctypes を介してアクセスするライブラリの上に Python ラッパーを書き始めるでしょう, 参考 https://web.archive.org/web/20180410025338/http://starship.python.net/crew/theller/ctypes/ 標準ライブラリに入る前の ctypes の Web ページ。チュ...cElementTree モジュールも含まれます。 この節の残りでは、ElementTree の使い方を簡単に紹介します。 詳しい文書は https://web.archive.org/web/20201124024954/http://effbot.org/zone/element-index.htm にあります。 ElementTree represents an XML document as a t... - https://man.mtool.work/python/3.14/whatsnew/2.5.html
- 変更履歴 7899
- 変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T
...line interface ignoring gzip --fast and gzip --best when compressing files given as arguments. gh-161112 : Fix shutil.make_archive() adding the zip archive being created to itself when it is written inside the directory being archived or a symbolic link...参照コールバックを付けた場合のクラッシュを修正しました。 gh-156078 : zipfile.ZipFile.mkdir() now raises ValueError when the archive is closed or when a writable member handle is open. gh-155428 : Ensure that hmac.digest() and hmac.HMAC.digest() output id...OpenSSL hash algorithm by name the first time. Patch by Bénédikt Tran. gh-127636 : Fix tarfile.TarFile.extract() to accept archive member names with a trailing forward slash, including those returned by tarfile.TarFile.getnames() . Contributed by Xiao Y... - https://man.mtool.work/python/3.14/whatsnew/changelog.html