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

Part of `gbp.pkg.compressor` (View In Hierarchy)
Undocumented

Class Variable | Aliases | Undocumented
Class Variable | Opts | Undocumented
Class Variable | Exts | Undocumented
Method | __init__ | Undocumented
Method | is_known | Undocumented
Method | type | Undocumented
Method | level | Undocumented
Method | cmdline | No summary
Method | __repr__ | No summary
Instance Variable | _type | Undocumented
Instance Variable | _level | Undocumented
Method | _level_opt | Undocumented
Method | _more_opts | Undocumented

Aliases =
Undocumented
(type: `Dict[str, str]`)
Opts =
Undocumented
(type: `Dict[str, str]`)
Exts =
Undocumented
(type: `Dict[str, str]`)
def __init__(self, type_, level=None):
Undocumented
_type =
Undocumented
_level =
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>"