Skip to content

Improve the archive API with fileobj parameters #595

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 1 commit into from
May 4, 2023
Merged

Improve the archive API with fileobj parameters #595

merged 1 commit into from
May 4, 2023

Conversation

adanaja
Copy link
Contributor

@adanaja adanaja commented May 2, 2023

The archive API only allows unpacking an archive from file, and writing an archive to file. However the zipfile, and tarfile modules this API is based on, both accept fileobj parameters to read from, and write to memory.

This change adds a fileobj parameter to create_archive, and unpack_archive, in order to allow creating archives to, and unpacking archives from memory.

The archive API only allows unpacking an archive from file, and
writing an archive to file. However the zipfile, and tarfile
modules this API is based on, both accept fileobj parameters to
read from, and write to memory.

This change adds a fileobj parameter to create_archive, and
unpack_archive, in order to allow creating archives to, and
unpacking archives from memory.
@adanaja adanaja merged commit a6d6fb1 into AdaCore:master May 4, 2023
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