Module Expr Str ImportFrom alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults Num Num body Expr Str Return Call AttributeLoad Str attr ListComp Call NameLoad BinOpBitAnd BinOpRShift NameLoad NameLoad Num comprehension NameStore Call NameLoad BinOpSub NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Num For NameStore NameLoad body AugAssignLShift NameStore Num AugAssignBitOr NameStore IfExp Call NameLoad NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Str For NameStore Call NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore NameLoad For NameStore NameLoad body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If BinOpMod Call NameLoad NameLoad Num body Assign NameStore BinOpAdd Str NameLoad Assign NameStore Str For NameStore Call NameLoad Num Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Call NameLoad ListLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore NameLoad For NameStore NameLoad body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If BinOpMod Call NameLoad NameLoad Num body Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call NameLoad ListLoad For NameStore Call NameLoad Num Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num Num body Expr Str Assign NameStore Call NameLoad ListLoad Assign NameStore Num While BoolOpOr NameLoad CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpBitAnd NameLoad Num AugAssignAdd NameStore Num AugAssignRShift NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Call NameLoad ListLoad body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Num While NameLoad body AugAssignLShift NameStore Num AugAssignAdd NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str ListLoad Num NameLoad body Expr Str Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp BinOpMod NameLoad Num BinOpAdd BinOpFloorDiv NameLoad Num Num BinOpFloorDiv NameLoad Num If UnaryOpNot CompareLtELtE Num NameLoad BinOpMult NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr BinOpMult NameLoad Num Assign NameStore Num Assign NameStore BinOpMult Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore NameLoad If CompareEq NameLoad Num body If SubscriptLoad NameLoad Index NameLoad body Assign NameStore Num orelse Assign NameStore Num orelse Assign NameStore BinOpBitAnd SubscriptLoad NameLoad Index NameLoad BinOpSub BinOpPow Num NameLoad Num AugAssignLShift NameStore BinOpSub NameLoad NameLoad AugAssignBitOr NameStore NameLoad AugAssignSub NameStore NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str ListLoad Num NameLoad Num body Expr Str Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp BinOpMod NameLoad Num BinOpAdd BinOpFloorDiv NameLoad Num Num BinOpFloorDiv NameLoad Num If UnaryOpNot CompareLtELtE Num NameLoad BinOpMult NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr BinOpMult NameLoad Num If CompareLt Call NameLoad NameLoad BinOpAdd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad Num BinOpSub BinOpAdd NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Num Assign NameStore BinOpMult Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore NameLoad If CompareEq NameLoad Num body If SubscriptLoad NameLoad Index NameLoad body Assign NameStore Num orelse Assign NameStore Num orelse Assign NameStore BinOpBitAnd SubscriptLoad NameLoad Index NameLoad BinOpSub BinOpPow Num NameLoad Num AugAssignLShift NameStore BinOpSub NameLoad NameLoad AugAssignBitOr NameStore NameLoad AugAssignSub NameStore NameLoad Assign NameStore Num While BoolOpOr NameLoad CompareLt NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpSub BinOpSub BinOpAdd NameLoad NameLoad Num NameLoad BinOpBitAnd NameLoad Num AugAssignAdd NameStore Num AugAssignRShift NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Call NameLoad ListLoad Num NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore IfExp BinOpMod NameLoad Num BinOpAdd BinOpFloorDiv NameLoad Num Num BinOpFloorDiv NameLoad Num If UnaryOpNot CompareLtELtE Num NameLoad BinOpMult NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr BinOpMult NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore ListLoad Assign NameStore BinOpMult Num NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore NameLoad Assign NameStore BinOpLShift BinOpSub BinOpPow Num NameLoad Num BinOpSub NameLoad NameLoad Assign NameStore BinOpBitAnd NameLoad NameLoad AugAssignRShift NameStore BinOpSub NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Num NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore NameLoad If CompareNotEq NameLoad Num body Assign NameStore NameLoad Assign NameStore BinOpSub BinOpPow Num NameLoad Num Assign NameStore BinOpBitAnd NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Num NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpLShift Num BinOpSub NameLoad Num Assign NameStore BinOpSub BinOpBitXor NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str ListLoad Num body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num If UnaryOpNot CompareLtLtE Num NameLoad Num body Raise Call NameLoad Str AugAssignAdd NameStore NameLoad If CompareGt NameLoad Num body Raise Call NameLoad Str If CompareEq NameLoad Num body If SubscriptLoad NameLoad Index NameLoad body Assign NameStore Num orelse Assign NameStore Num orelse Assign NameStore BinOpBitAnd SubscriptLoad NameLoad Index NameLoad BinOpSub BinOpPow Num NameLoad Num AugAssignLShift NameStore BinOpSub NameLoad NameLoad AugAssignBitOr NameStore NameLoad AugAssignSub NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num AugAssignBitAnd NameStore Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num If UnaryOpNot CompareLtLtE Num NameLoad Num body Raise Call NameLoad Str AugAssignAdd NameStore NameLoad If CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpLShift BinOpSub BinOpPow Num NameLoad Num BinOpSub NameLoad NameLoad Assign NameStore BinOpBitAnd NameLoad NameLoad AugAssignRShift NameStore BinOpSub NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Num NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Str If CompareLt NameLoad Num body Raise Call NameLoad Str If CompareEq NameLoad Num body Return Str While CompareGt NameLoad Num body Assign NameStore BinOpAdd Call NameLoad BinOpMod NameLoad Num NameLoad Assign NameStore BinOpRShift NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad Str attr ListComp Call NameLoad BinOpBitAnd BinOpRShift NameLoad NameLoad Num comprehension NameStore Call NameLoad BinOpSub NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Str body Expr Str If CompareLt NameLoad Num body Raise Call NameLoad Str If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign NameStore NameLoad If CompareEq NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Num Assign NameStore Str For NameStore Call NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMod Str Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num If BoolOpAnd BinOpMod BinOpAdd NameLoad Num NameLoad BinOpMod BinOpAdd NameLoad Num NameLoad body If UnaryOpNot BinOpMod BinOpAdd NameLoad Num NameLoad body AugAssignAdd NameStore Str orelse AugAssignAdd NameStore NameLoad orelse If CompareNotEq BinOpAdd NameLoad Num NameLoad body AugAssignAdd NameStore Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMod Str Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num Num Expr Call NameLoad NameLoad decorator_list
N/A N/A 
byting.py utility functions supporting byte, bit, hex conversion and packing

 __future__ absolute_import division print_function N/A sys N/A os N/A struct N/A string sixing * odicting odict consoling getConsole N/A console N/A getConsole binize N/A N/A n size N/A 0 8 N/A N/A 
    Returns the expanded binary unicode string equivalent of integer n,
    left zero padded using size number of bits

    example binize(11, 4) returns u'1011'
     N/A N/A N/A join N/A N/A str N/A N/A n y 1 N/A y N/A range N/A size 1 -1 -1 N/A unbinize N/A N/A u N/A N/A N/A 
    Returns integer n equivalent of binary unicode string u

    example: unbinize(u'1011') returns 11
     N/A n 0 N/A bit u N/A N/A n 1 N/A n N/A N/A int bit 1 0 N/A n N/A hexize N/A N/A b N/A N/A N/A 
    Returns the expanded hex unicode string equivalent of the bytes string b
    Converts bytes string  b into the unicode hex format equivalent
    Where each byte in bytes b is expanded into the 2 charater hex
    equivalent
     N/A h N/A i N/A range N/A len b N/A N/A h N/A N/A {0:02x} format N/A ord N/A b N/A i N/A i 1 N/A h N/A unhexize N/A N/A h N/A N/A N/A 
    Returns the packed bytes string version of the unicode hex string h
    Converts unicode string h in hex format into  bytes string by compressing
    every two hex characters into 1 byte that is the binary equivalent
    If h does not have an even number of characters then a 0 is first prepended to h

     N/A hh h N/A c hh N/A N/A N/A c N/A string hexdigits N/A N/A h N/A N/A h replace c N/A N/A N/A len h 2 N/A N/A h N/A 0 h N/A b N/A i N/A xrange 0 N/A len h 2 N/A N/A s N/A h N/A i N/A i 2 N/A b N/A b N/A N/A struct pack !B N/A int s 16 N/A b N/A hexify N/A N/A b N/A N/A bytearray N/A N/A N/A 
    Returns the unicode string hex equivalent of the bytearray b
    Converts byte in b into into the two character unicode string hex equivalent
     N/A b N/A bytearray b N/A h N/A byte b N/A N/A h N/A N/A {0:02x} format byte N/A h N/A unhexify N/A N/A h N/A N/A N/A 
    Returns the packed binary bytearray equivalent of the unicode hex string h
    version of the string as bytes
    Where every two hex characters in h are compressed into one byte binary equivalent
    If h does not have an even number of characters then a '0' is first prependedto h
     N/A hh h N/A c hh N/A N/A N/A c N/A string hexdigits N/A N/A h N/A N/A h replace c N/A N/A N/A len h 2 N/A N/A h N/A 0 h N/A b N/A bytearray N/A N/A i N/A xrange 0 N/A len h 2 N/A N/A s N/A h N/A i N/A i 2 N/A N/A N/A b append N/A int s 16 N/A b N/A bytify N/A N/A n size N/A 0 3 N/A N/A 
    Returns bytearray of size bytes equivalent of integer n that is left zero padded
    to at least size bytes. Big endian
     N/A b N/A bytearray N/A N/A count 0 N/A N/A n N/A count size N/A N/A N/A N/A b insert 0 N/A n 255 N/A count 1 N/A n 8 N/A b N/A unbytify N/A N/A b N/A N/A bytearray N/A N/A N/A 
    Returns unsigned integer equivalent of bytearray b
    b may be any iterable of ints including bytes or list of ints. Big endian.
     N/A b N/A bytearray b N/A N/A N/A b reverse N/A n 0 N/A b N/A N/A n 8 N/A n N/A N/A b pop N/A n N/A packify N/A N/A fmt fields size N/A 8 N/A 0 None N/A N/A 
    Packs fields sequence of bit fields into bytearray of size bytes using fmt string.
    Each white space separated field of fmt is the length of the associated bit field
    If not provided size is the least integer number of bytes that hold the fmt.

    Assumes unsigned fields values.
    Assumes network big endian so first fields element is high order bits.
    Each field in format string is number of bits for the associated bit field
    Fields with length of 1 are treated as has having boolean truthy field values
       that is,   nonzero is True and packs as a 1
    for 2+ length bit fields the field element is truncated
    to the number of low order bits in the bit field
    if sum of number of bits in fmt less than size bytes then the last byte in
       the bytearray is right zero padded
    if sum of number of bits in fmt greater than size bytes returns exception
    to pad just use 0 value in source field.
    example
    packify("1 3 2 2", (True, 4, 0, 3)). returns bytearry([0xc3])
     N/A tbfl N/A sum N/A N/A int x N/A x N/A N/A fmt split N/A N/A size None N/A N/A size N/A N/A tbfl 8 N/A N/A tbfl 8 1 N/A tbfl 8 N/A N/A N/A 0 tbfl N/A size 8 N/A N/A N/A ValueError N/A N/A Total bit field lengths in fmt not in [0, {0}] format N/A size 8 N/A n 0 N/A bfp N/A 8 size N/A bu 0 N/A N/A i bfmt N/A enumerate N/A N/A fmt split N/A N/A bits 0 N/A bfl N/A int bfmt N/A bu bfl N/A N/A bfl 1 N/A N/A N/A fields N/A i N/A N/A bits 1 N/A N/A bits 0 N/A N/A bits N/A N/A fields N/A i N/A N/A 2 bfl 1 N/A bits N/A bfp bfl N/A n bits N/A bfp bfl N/A N/A bytify n size N/A packifyInto N/A N/A b fmt fields size offset N/A 8 N/A 0 None 0 N/A N/A 
    Packs fields sequence of bit fields using fmt string into bytearray b
    starting at offset and packing into size bytes
    Each white space separated field of fmt is the length of the associated bit field
    If not provided size is the least integer number of bytes that hold the fmt.
    Extends the length of b to accomodate size after offset if not enough.
    Returns actual size of portion packed into.

    Assumes unsigned fields values.
    Assumes network big endian so first fields element is high order bits.
    Each field in format string is number of bits for the associated bit field
    Fields with length of 1 are treated as has having boolean truthy field values
       that is,   nonzero is True and packs as a 1
    for 2+ length bit fields the field element is truncated
    to the number of low order bits in the bit field
    if sum of number of bits in fmt less than size bytes then the last byte in
       the bytearray is right zero padded
    if sum of number of bits in fmt greater than size bytes returns exception
    to pad just use 0 value in source field.
    example
    packify("1 3 2 2", (True, 4, 0, 3)). returns bytearry([0xc3])
     N/A tbfl N/A sum N/A N/A int x N/A x N/A N/A fmt split N/A N/A size None N/A N/A size N/A N/A tbfl 8 N/A N/A tbfl 8 1 N/A tbfl 8 N/A N/A N/A 0 tbfl N/A size 8 N/A N/A N/A ValueError N/A N/A Total bit field lengths in fmt not in [0, {0}] format N/A size 8 N/A N/A N/A len b N/A offset size N/A N/A N/A N/A b extend N/A N/A 0 N/A N/A offset size N/A len b N/A n 0 N/A bfp N/A 8 size N/A bu 0 N/A N/A i bfmt N/A enumerate N/A N/A fmt split N/A N/A bits 0 N/A bfl N/A int bfmt N/A bu bfl N/A N/A bfl 1 N/A N/A N/A fields N/A i N/A N/A bits 1 N/A N/A bits 0 N/A N/A bits N/A N/A fields N/A i N/A N/A 2 bfl 1 N/A bits N/A bfp bfl N/A n bits N/A bfp bfl N/A count 0 N/A N/A n N/A count size N/A N/A N/A b N/A N/A N/A N/A offset size 1 count N/A n 255 N/A count 1 N/A n 8 N/A size N/A unpackify N/A N/A fmt b boolean size N/A 1 1 1 1 1 1 1 1 N/A bytearray N/A 0 False None N/A N/A 
    Returns tuple of unsigned int bit field values that are unpacked from the
    bytearray b according to fmt string. b maybe integer iterator
    If not provided size is the least integer number of bytes that hold the fmt.

    Each white space separated field of fmt is the length of the associated bit field.
    returns unsigned fields values.

    Assumes network big endian so first fmt is high order bits.
    Format string is number of bits per bit field
    If boolean parameter is True then return boolean values for
       bit fields of length 1

    if sum of number of bits in fmt less than 8 * size) then remaining
    bits are returned as additional field in result.

    if sum of number of bits in fmt greater 8 * len(b) returns exception

    example:
    unpackify(u"1 3 2 2", bytearray([0xc3]), False) returns (1, 4, 0, 3)
    unpackify(u"1 3 2 2", 0xc3, True) returns (True, 4, 0, 3)
     N/A b N/A bytearray b N/A tbfl N/A sum N/A N/A int x N/A x N/A N/A fmt split N/A N/A size None N/A N/A size N/A N/A tbfl 8 N/A N/A tbfl 8 1 N/A tbfl 8 N/A N/A N/A 0 tbfl N/A size 8 N/A N/A N/A ValueError N/A N/A Total bit field lengths in fmt not in [0, {0}] format N/A size 8 N/A b N/A b N/A size N/A fields N/A N/A bfp N/A 8 size N/A bu 0 N/A n N/A unbytify b N/A N/A i bfmt N/A enumerate N/A N/A fmt split N/A N/A bfl N/A int bfmt N/A bu bfl N/A mask N/A N/A N/A 2 bfl 1 N/A bfp bfl N/A bits N/A n mask N/A bits N/A bfp bfl N/A N/A N/A bfl 1 boolean N/A N/A bits N/A N/A bits True N/A N/A bits False N/A N/A N/A fields append bits N/A bfp bfl N/A N/A bfp 0 N/A N/A bfl bfp N/A mask N/A N/A 2 bfl 1 N/A bits N/A n mask N/A N/A N/A bfl 1 boolean N/A N/A bits N/A N/A bits True N/A N/A bits False N/A N/A N/A fields append bits N/A N/A tuple fields N/A signExtend N/A N/A x n N/A 8 N/A N/A 
    Returns signed integer that is the sign extention of n bit unsigned integer x
    in twos complement form where x has n significant bits

    This is useful when unpacking bit fields where the bit fields use two's complement
    to represent signed numbers. Assumes the the upper bits (above n) of x are zeros
    Works for both positive and negative x
     N/A m N/A 1 N/A n 1 N/A r N/A N/A x m m N/A r N/A packByte N/A N/A fmt fields N/A 8 N/A 0 N/A N/A Packs fields sequence into one byte using fmt string.

       Each fields element is a bit field and each
       char in fmt is the corresponding bit field length.
       Assumes unsigned fields values.
       Assumes network big endian so first fields element is high order bits.
       Format string is number of bits per bit field
       Fields with length of 1 are treated as has having boolean truthy field values
          that is,   nonzero is True and packs as a 1
       for 2-8 length bit fields the field element is truncated
       to the number of low order bits in the bit field
       if sum of number of bits in fmt less than 8 last bits are padded
       if sum of number of bits in fmt greater than 8 returns exception
       to pad just use 0 value in source field.
       example
       packByte("1322",(True,4,0,3)). returns 0xc3
     N/A fmt N/A bytes fmt N/A byte 0 N/A bfp 8 N/A bu 0 N/A i N/A range N/A len fmt N/A N/A bits 0 N/A bfl N/A int N/A fmt N/A i N/A i 1 N/A N/A N/A 0 bfl 8 N/A N/A N/A ValueError Bit field length in fmt must be > 0 and <= 8 N/A bu bfl N/A N/A bu 8 N/A N/A N/A ValueError Sum of bit field lengths in fmt must be <= 8 N/A N/A bfl 1 N/A N/A N/A fields N/A i N/A N/A bits 1 N/A N/A bits 0 N/A N/A bits N/A N/A fields N/A i N/A N/A 2 bfl 1 N/A bits N/A bfp bfl N/A byte bits N/A bfp bfl N/A N/A N/A console profuse N/A N/A Packed byte = {0:#x}
 format byte N/A byte N/A unpackByte N/A N/A fmt byte boolean N/A 11111111 0 True N/A N/A unpacks source byte into tuple of bit fields given by fmt string.

       Each char of fmt is a bit field length.
       returns unsigned fields values.
       Assumes network big endian so first fmt is high order bits.
       Format string is number of bits per bit field
       If boolean parameter is True then return boolean values for
          bit fields of length 1

       if sum of number of bits in fmt less than 8 then remaining
       bits returned as additional element in result.

       if sum of number of bits in fmt greater than 8 returns exception
       only low order byte of byte is used.

       example
       unpackByte("1322",0xc3, False ) returns (1,4,0,3)
       unpackByte("1322",0xc3, True ) returns (True,4,0,3)
     N/A fmt N/A bytes fmt N/A fields N/A N/A bfp 8 N/A bu 0 N/A byte 255 N/A i N/A range N/A len fmt N/A N/A bfl N/A int N/A fmt N/A i N/A i 1 N/A N/A N/A 0 bfl 8 N/A N/A N/A ValueError Bit field length in fmt must be > 0 and <= 8 N/A bu bfl N/A N/A bu 8 N/A N/A N/A ValueError Sum of bit field lengths in fmt must be <= 8 N/A mask N/A N/A N/A 2 bfl 1 N/A bfp bfl N/A bits N/A byte mask N/A bits N/A bfp bfl N/A N/A N/A bfl 1 boolean N/A N/A bits N/A N/A bits True N/A N/A bits False N/A N/A N/A fields append bits N/A bfp bfl N/A N/A tuple fields N/A denary2BinaryStr N/A N/A n l N/A 8 N/A N/A 
    Convert denary integer n to binary string bs, left pad to length l
     N/A bs N/A N/A n 0 N/A N/A N/A ValueError must be a positive integer N/A N/A n 0 N/A N/A 0 N/A N/A n 0 N/A N/A bs N/A N/A str N/A n 2 bs N/A n N/A n 1 N/A N/A N/A bs rjust l 0 N/A dec2BinStr N/A N/A n count N/A 24 N/A N/A  returns the binary formated string of integer n, using count number of digits N/A N/A N/A join N/A N/A str N/A N/A n y 1 N/A y N/A range N/A count 1 -1 -1 N/A printHex N/A N/A s chunk chunks silent separator N/A 0 0 False . N/A N/A prints elements of bytes string s in hex notation.

       chunk is number of bytes per chunk
       0 means no chunking
       chunks is the number of chunks per line
       0 means no new lines

       silent = True means return formatted string but do not print
     N/A N/A chunk 0 N/A N/A N/A ValueError invalid size of chunk N/A N/A chunks 0 N/A N/A N/A ValueError invalid chunks per line N/A slen N/A len s N/A N/A chunk 0 N/A N/A chunk slen N/A N/A chunks 0 N/A N/A line slen N/A N/A line N/A chunk chunks N/A cc 0 N/A ps N/A i N/A range N/A len s N/A N/A ps N/A %02x N/A ord N/A s N/A i N/A i 1 N/A N/A N/A N/A i 1 line N/A N/A i 1 slen N/A N/A N/A N/A N/A i 1 chunk N/A N/A ps N/A N/A ps separator N/A N/A N/A N/A i 1 slen N/A N/A ps N/A N/A silent N/A N/A N/A N/A console terse N/A N/A {0}
 format ps N/A ps N/A printDecimal N/A N/A s N/A N/A N/A prints elements of string s in decimal notation.

     N/A ps N/A i N/A range N/A len s N/A N/A ps N/A ps N/A %03d. N/A ord N/A s N/A i N/A i 1 N/A ps N/A ps N/A 0 -1 N/A N/A print ps N/A