zstd.py 752 B

123456789101112131415161718192021222324252627282930
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (C) 2022 Weidmüller Interface GmbH & Co. KG
  3. # Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
  4. #
  5. """Bintool implementation for zstd
  6. zstd allows compression and decompression of files.
  7. Documentation is available via::
  8. man zstd
  9. """
  10. from binman import bintool
  11. # pylint: disable=C0103
  12. class Bintoolzstd(bintool.BintoolPacker):
  13. """Compression/decompression using the zstd algorithm
  14. This bintool supports running `zstd` to compress and decompress data, as
  15. used by binman.
  16. It is also possible to fetch the tool, which uses `apt` to install it.
  17. Documentation is available via::
  18. man zstd
  19. """
  20. def __init__(self, name):
  21. super().__init__(name)