Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python implementation of the tar utility #65749

Closed
serhiy-storchaka opened this issue May 21, 2014 · 5 comments
Closed

Add Python implementation of the tar utility #65749

serhiy-storchaka opened this issue May 21, 2014 · 5 comments
Labels
type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 21550
Nosy @gustaebel, @merwok, @PCManticore, @berkerpeksag, @serhiy-storchaka, @FFY00
Dependencies
  • bpo-21549: Add the members parameter for TarFile.list()
  • Files
  • tar.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-05-30.11:45:10.238>
    created_at = <Date 2014-05-21.10:49:13.968>
    labels = ['type-feature']
    title = 'Add Python implementation of the tar utility'
    updated_at = <Date 2021-05-30.11:45:10.238>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2021-05-30.11:45:10.238>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-30.11:45:10.238>
    closer = 'serhiy.storchaka'
    components = ['Demos and Tools']
    creation = <Date 2014-05-21.10:49:13.968>
    creator = 'serhiy.storchaka'
    dependencies = ['21549']
    files = ['35308']
    hgrepos = []
    issue_num = 21550
    keywords = []
    message_count = 5.0
    messages = ['218867', '218870', '218874', '219052', '394745']
    nosy_count = 6.0
    nosy_names = ['lars.gustaebel', 'eric.araujo', 'Claudiu.Popa', 'berker.peksag', 'serhiy.storchaka', 'FFY00']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21550'
    versions = ['Python 3.5']

    @serhiy-storchaka
    Copy link
    Member Author

    Here is preliminary Python implementation of the tar archiving utility. I propose to add it to Tools/script. The main purpose of this the research of which features needed the tarfile module. Another purpose is that this provides more powerful tool to create or extract tar archives on platforms where the tar utility is not installed (the tarfile module itself provides very simple command line interface).

    Supported options are mainly common subset of GNU tar and bsdtar options. Some options (--absolute-names, controlling of symlinks and hardlings dereferencing and files overwriting) needs implementing new features in the tarfile module.

    @serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label May 21, 2014
    @PCManticore
    Copy link
    Mannequin

    PCManticore mannequin commented May 21, 2014

    I don't think that adding it to Tools/script helps that much on Windows at least. See bpo-21027 for reference. Except this, +1 from me.

    @brettcannon
    Copy link
    Member

    If this goes in then the CLI in the tarfile module should be removed.

    @merwok
    Copy link
    Member

    merwok commented May 24, 2014

    IIRC, when the tarfile module CLI was added, there was a decision to keep it short and simple, not mimic the whole tar(1) interface.

    Python core ships with modules that should be featurefull, but we don’t put much focus or effort on general utilities: the only globally installed scripts are directly useful to Python devs (idle, pydoc, pyvenv, 2to3); the stdlib modules with a CLI are quick helpers (python -m SimpleHTTPServer) or smoke tests or demos IIRC; Tools/scripts have an even lower level of usefulness and maintenance.

    I sympathize with the use case of finding missing pieces in tarfile, but I’m wary about the maintenance burden (code maintenance if it matches tar(1) fully, support if it does not, endless discussions about installing it on Windows like what happened for Tools/scripts/diff.py, etc).

    @FFY00
    Copy link
    Member

    FFY00 commented May 30, 2021

    Given the addition of the tarfile CLI and the seeming lack of interest, can this be closed?

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants