Skip to content

Improve extraction API - #23

Merged
pombredanne merged 6 commits into
mainfrom
16-improved-vm-handling
Jun 2, 2021
Merged

Improve extraction API#23
pombredanne merged 6 commits into
mainfrom
16-improved-vm-handling

Conversation

@pombredanne

Copy link
Copy Markdown
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 pombredanne@nexb.com

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- 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 <pombredanne@nexb.com>
They can exist alone without a tar.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne requested a review from tdruez June 2, 2021 13:00
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@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