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

Provide runpy invocation in Python lib #186

Open
jaraco opened this issue Nov 14, 2022 · 1 comment
Open

Provide runpy invocation in Python lib #186

jaraco opened this issue Nov 14, 2022 · 1 comment

Comments

@jaraco
Copy link

jaraco commented Nov 14, 2022

It would be nice if there were a way to invoke python -m zstandard and get behavior similar to python -m zipfile or even better something like what the tar command offers. The primary use-case would be to enable decompressing and extracting all files from a .tar.zst without needing to copy several lines of Python, lines which can't be re-written as as a series of expressions as a parameter to python -c.

I'd be happy with just support for -e <zst_file> [output_dir].

@jaraco
Copy link
Author

jaraco commented Nov 14, 2022

I've published jaraco.zstd. Now all anyone has to do is put wheels for both zstardard and jaraco.zstd on their PYTHONPATH and then run py -m jaraco.zstd -e filename --out-dir /tmp... or if they have pip-run: pip-run -q jaraco.zstd -- -m jaraco.zstd -e filename --out-dir /tmp. I'd prefer to retire that package in favor of a built-in implementation.

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

No branches or pull requests

1 participant