Provide sane defaults for file_writer
まだ誰も着手していません。
評価
調査の方向性
Start by reading file_writer in the repository and the valid format and filter names in ffi.py. Decide how filename extensions map to compatible defaults, and preserve the ability to override them when calling file_writer. Done means callers can omit both arguments for supported extensions and still specify them explicitly when needed.
索引モデルが issue の本文から書いたものです。
説明
It seems as though the line:
with libarchive.file_writer('test.tar.gz', 'ustar', 'gzip') as archive:
could be boiled down to:
with libarchive.file_writer('test.tar.gz') as archive:
as format_name and filter_name can be inferred by filepath's extension.
Currently, users have to:
- Dig through
ffi.pysource code to see the list of validformat_names andfilter_names- Providing a docstring for
file_writerwould be invaluable here.
- Providing a docstring for
- Already know what types of formats to use for what filters.
- I'm sure a list of sane default could be chosen for most formats, which could still be overwritten if specified in the function call.
I'm sure this is a jarring experience to most.
- 主要言語
- Python
- スター
- 84
- フォーク
- 41
- 平均マージ
- 6日 12時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Changaco/python-libarchive-c のほかの issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 51/100
Changaco/python-libarchive-c#144 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
Changaco/python-libarchive-c#143 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Changaco/python-libarchive-c#129 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
Changaco/python-libarchive-c#122 · コメント 1 件 ·
-
Type checkingオープンfeature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Changaco/python-libarchive-c#111 ·
Changaco/python-libarchive-c の issue をすべて見る
似ている issue
-
Context/namespace resources fail in-cluster: "Invalid kube-config file. No configuration found."オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug documentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
awslabs/visual-asset-management-system#880 ·
メンテナーはふだん 1 日以内に返信
-
netbox status: needs owner type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
netbox-community/netbox#23533 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts status: backlog type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
netbox-community/netbox-scripts#68 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
marin-community/marin#10765 ·
メンテナーはふだん 1 日以内に返信