{"id":18517723,"url":"https://github.com/ascoderu/xtarfile","last_synced_at":"2025-04-10T01:42:19.563Z","repository":{"id":33924280,"uuid":"163637134","full_name":"ascoderu/xtarfile","owner":"ascoderu","description":"Wrapper around tarfile to add support for more compression formats","archived":false,"fork":false,"pushed_at":"2023-10-09T09:19:13.000Z","size":20,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T03:23:43.718Z","etag":null,"topics":["compression","python3","tarfile","zstandard","zstd"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ascoderu.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-31T03:54:14.000Z","updated_at":"2025-01-31T02:19:36.000Z","dependencies_parsed_at":"2024-06-20T22:08:58.855Z","dependency_job_id":null,"html_url":"https://github.com/ascoderu/xtarfile","commit_stats":{"total_commits":17,"total_committers":7,"mean_commits":"2.4285714285714284","dds":"0.47058823529411764","last_synced_commit":"51120c93adf3223ac789206661339c8fecc3788c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascoderu%2Fxtarfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascoderu%2Fxtarfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascoderu%2Fxtarfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascoderu%2Fxtarfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ascoderu","download_url":"https://codeload.github.com/ascoderu/xtarfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142224,"owners_count":21054607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compression","python3","tarfile","zstandard","zstd"],"created_at":"2024-11-06T17:07:56.460Z","updated_at":"2025-04-10T01:42:19.520Z","avatar_url":"https://github.com/ascoderu.png","language":"Python","readme":"xtarfile\n========\n\n.. image:: https://github.com/ascoderu/xtarfile/workflows/CI/badge.svg\n    :target: https://github.com/ascoderu/xtarfile/actions\n\n.. image:: https://img.shields.io/pypi/v/xtarfile.svg\n    :target: https://pypi.org/project/xtarfile/\n\nOverview\n--------\n\nWrapper around tarfile to add support for more compression formats.\n\nUsage\n-----\n\nFirst, install the library with the tarfile compression formats you wish to support.\nThe example below shows an install for zstandard tarfile support.\n\n.. sourcecode :: bash\n\n    pip install xtarfile[zstd]\n\nYou can now use the xtarfile module in the same way as the standard library tarfile module:\n\n.. sourcecode :: python\n\n    import xtarfile as tarfile\n\n    with tarfile.open('some-archive', 'w:zstd') as archive:\n        archive.add('a-file.txt')\n\n    with tarfile.open('some-archive', 'r:zstd') as archive:\n        archive.extractall()\n\nAlternatively, detecting the correct compression module based on the file extensions is also supported:\n\n.. sourcecode :: python\n\n    import xtarfile as tarfile\n\n    with tarfile.open('some-archive.tar.zstd', 'w') as archive:\n        archive.add('a-file.txt')\n\n    with tarfile.open('some-archive.tar.zstd', 'r') as archive:\n        archive.extractall()\n\nDevelopment\n-----------\n\nInstall the project's dependencies with :code:`pip install .[zstd]`.\n\nRun the tests via :code:`python3 setup.py test`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascoderu%2Fxtarfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fascoderu%2Fxtarfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascoderu%2Fxtarfile/lists"}