# `gbp.pkg.compressor.Compressor(object)` class documentation

Part of `gbp.pkg.compressor` (View In Hierarchy)
No class docstring

Method | __init__ | Undocumented
Method | is_known | Undocumented
Method | type | Undocumented
Method | level | Undocumented
Method | cmdline | No summary
Method | __repr__ | No summary
Method | _level_opt | Undocumented
Method | _more_opts | Undocumented

def __init__(self, type_, level=None):
Undocumented
def is_known(self):
Undocumented
@property
def type(self):
Undocumented
@property
def level(self):
Undocumented
@property
def _level_opt(self):
Undocumented
@property
def _more_opts(self):
Undocumented
def cmdline(self, stdout=True):

    >>> Compressor('gzip', level=9).cmdline()
    'gzip -9 -n -c'
    >>> Compressor('gzip').cmdline(True)
    'gzip  -n -c'

def __repr__(self):

    >>> Compressor('gzip').__repr__()
    "<compressor type='gzip' >"
    >>> Compressor('gzip', 9).__repr__()
    "<compressor type='gzip' level=9>"