当前位置: 首页>>代码示例>>Python>>正文


Python transformer.Transformer类代码示例

本文整理汇总了Python中Peach.transformer.Transformer的典型用法代码示例。如果您正苦于以下问题:Python Transformer类的具体用法?Python Transformer怎么用?Python Transformer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Transformer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, salt=None):
     """
     :param salt: salt for crypt (optional)
     :type salt: str
     """
     Transformer.__init__(self)
     self._salt = salt
开发者ID:KurSh,项目名称:peach,代码行数:7,代码来源:UnixMD5Crypt.py

示例2: __init__

	def __init__(self, salt = None):
		'''
		@type	salt: string
		@param	salt: Salt for crypt (optional)
		'''
		Transformer.__init__(self)
		self._salt = salt
开发者ID:YECharles,项目名称:Peach,代码行数:7,代码来源:crypto.py

示例3: __init__

 def __init__(self, asHex=0):
     """
     @param asHex: 1 is hex, 0 is binary
     @type asHex: int
     """
     Transformer.__init__(self)
     self._asHex = asHex
开发者ID:KurSh,项目名称:peach,代码行数:7,代码来源:MD5.py

示例4: __init__

 def __init__(self, packFormat):
     """Create a Pack transformer.
     packFormat is a standard pack format string. Format string should only
     contain a single data place holder.
     """
     Transformer.__init__(self)
     self._packFormat = packFormat
开发者ID:KurSh,项目名称:peach,代码行数:7,代码来源:Pack.py

示例5: __init__

 def __init__(self, withPrefix=0):
     """Create IntToHex object.
     withPrefix flag indicates if 0x prefix should be tagged onto string.
     Default is no.
     """
     Transformer.__init__(self)
     self._withPrefix = withPrefix
开发者ID:KurSh,项目名称:peach,代码行数:7,代码来源:IntToHex.py

示例6: __init__

    def __init__(self, anotherTransformer=None):
        """Create Transformer object.

        :param anotherTransformer: a transformer to run next
        :type anotherTransformer: Transformer
        """
        Transformer.__init__(self, anotherTransformer)
开发者ID:KurSh,项目名称:peach,代码行数:7,代码来源:NetBiosDecode.py

示例7: __init__

	def __init__(self, level = 9):
		'''
		@type	level: number
		@param	level: The compresslevel parameter, if given, must be a number
		between 1 and 9; the default is 9.
		'''
		Transformer.__init__(self)
		self._level = level
开发者ID:flaub,项目名称:HotFuzz,代码行数:8,代码来源:compress.py

示例8: __init__

	def __init__(self, anotherTransformer = None):
		'''
		Create Transformer object.
		
		@type	anotherTransformer: Transformer
		@param	anotherTransformer: A transformer to run next

		'''
		Transformer.__init__(self, anotherTransformer)
开发者ID:thecrackofdawn,项目名称:Peach2.3,代码行数:9,代码来源:encode.py

示例9: __init__

 def __init__(self, isSigned=1, isLittleEndian=1):
     """
     @param isSigned: 1 for signed, 0 for unsigned (we ignore this)
     @type isSigned: number
     @param isLittleEndian: 1 for signed, 0 for unsigned
     @type isLittleEndian: number
     """
     Transformer.__init__(self)
     self._isLittleEndian = isLittleEndian
开发者ID:KurSh,项目名称:peach,代码行数:9,代码来源:Integer.py

示例10: __init__

    def __init__(self, anotherTransformer=None, pad=True):
        """Create Transformer object.

        :param anotherTransformer: A transformer to run next
        :type anotherTransformer: Transformer
        :param pad: will pad / trim encoded name to 32 bytes
        :type pad: bool
        """
        Transformer.__init__(self, anotherTransformer)
        self._pad = pad
开发者ID:dolfcao,项目名称:peach,代码行数:10,代码来源:NetBiosEncode.py

示例11: __init__

	def __init__(self, isSigned = 1, isLittleEndian = 1):
		'''
		@type	isSigned: number
		@param	isSigned: 1 for signed, 0 for unsigned
		@type	isLittleEndian: number
		@param	isLittleEndian: 1 for signed, 0 for unsigned
		'''
		
		Transformer.__init__(self)
		self._isSigned = isSigned
		self._isLittleEndian = isLittleEndian
开发者ID:thecrackofdawn,项目名称:Peach2.3,代码行数:11,代码来源:type.py

示例12: __init__

    def __init__(self, anotherTransformer=None, resolution=None, prefix=None):
        """Create Transformer object.

        :param anotherTransformer: a transformer to run next
        :type anotherTransformer: Transformer
        :param resolution: number of nibbles between separator
                           (must be a positive even integer)
        :type resolution: int
        :param prefix: a value to prepend each chunk with (defaults to ' ')
        :type prefix: str
        """

        Transformer.__init__(self, anotherTransformer)
        self._resolution = resolution
        self._prefix = prefix
开发者ID:KurSh,项目名称:peach,代码行数:15,代码来源:HexString.py

示例13: __init__

    def __init__(self, key, digestmod=hashlib.md5, asHex=0):
        """
        Key is a generator for HMAC key, digestmod is hash to use (md5 or sha)

        :param key: HMAC key
        :type key: Generator
        :param digestmod: which digest to use
        :type digestmod: MD5 or SHA hashlib object
        :param asHex: 1 is hex, 0 is binary
        :type asHex: int
        """
        Transformer.__init__(self)
        self._key = key
        self._digestmod = digestmod
        self._asHex = asHex
开发者ID:KurSh,项目名称:peach,代码行数:15,代码来源:HMAC.py

示例14: __init__

 def __init__(self):
     Transformer.__init__(self)
     self._size = None
开发者ID:KurSh,项目名称:peach,代码行数:3,代码来源:NumberToString.py

示例15: __init__

 def __init__(self, level=-1, dicto=None):
     Transformer.__init__(self)
     self._level = level
     self._dicto = dicto
开发者ID:KurSh,项目名称:peach,代码行数:4,代码来源:Zlib.py


注:本文中的Peach.transformer.Transformer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。