Add an example of writing a tarfile using stdin #136858
Copy link
Copy link
Open
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirsprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Description
We currently don't have a (good) example of how to write a tar archive using stdin - we have one for stdout.
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirsprintstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
Projects
- StatusShow more project fieldsTodo
- StatusShow more project fieldsTodo
- StatusShow more project fieldsTodo
Activity
AA-Turner commentedon Jul 20, 2025
Another idea discussed with @GovernmentPlates was adding stdin support to
python -m tarfile.A
pythongh-136858: Adds an example of writing a tarfile using stdin
pythongh-136858: Adds an example of writing a tarfile using stdin
aeurielesn commentedon Aug 7, 2025
Created a PR with two new examples and few fixes.