Skip to content

Improve extraction API #23

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

Merged
merged 6 commits into from
Jun 2, 2021
Merged

Improve extraction API #23

merged 6 commits into from
Jun 2, 2021

Conversation

pombredanne
Copy link
Member

The extractcode.extract.extract_file() function was not allowing to
extract correctly a files of any archive format.

This PR adds a new extractcode.api.extract_archive() function that will
extract a single archive of any supported format.

In addition the CLI has a new --list-formats option that shows all
supported archive formats.

Signed-off-by: Philippe Ombredanne [email protected]

Signed-off-by: Philippe Ombredanne <[email protected]>
- This is to extract a single archive file of any supported format
  non recursively.
- Also apply minor formatting and refactoring for readability
- Improve docstrings
- Add tests

Signed-off-by: Philippe Ombredanne <[email protected]>
They can exist alone without a tar.

Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
@pombredanne pombredanne requested a review from tdruez June 2, 2021 13:00
Signed-off-by: Philippe Ombredanne <[email protected]>
@pombredanne pombredanne merged commit 632f6a8 into main Jun 2, 2021
@pombredanne pombredanne deleted the 16-improved-vm-handling branch June 2, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants