zephir.monitor.agentmanager.util

Package zephir :: Package monitor :: Package agentmanager :: Module util |
[frames] | no frames]

# Module util

source code

Various helper functions

Classes
| UTC UTC timezone

Functions
percent(quantity, total) quantity/total rate, as a percentage | source code
expand_dirname(dirname) Expande `~` et les variables d'environnement dans `dirname`, et ajoute un séparateur terminal si nécessaire. | source code
boolean_to_onoff(b) | source code
ensure_dirs(*dirs) Crée les répertoires passés en argument si nécessaire | source code
parse_date(date) | source code
utcnow() Aware UTC datetime | source code
utcfromtimestamp(timestamp) | source code
timestampfromutc(date) | source code
status_to_img(s) | source code
md5file(filename) Return the hex digest of a file without loading it all into memory | source code

Variables
| utc = `UTC()`
| TIME_ORIGIN = `datetime.datetime(1970, 1, 1, 0, 0, tzinfo=<zeph`...``
| MONTHS = ``{``'``AOU``'``:` 8`,` `'``APR``'``:` 4`,` `'``AUG``'``:` 8`,` `'``AVR``'``:` 4`,` `'``DEC``'``:` 12`,` `'``...``
| md5files = ``{`1`:` `[``(``'``variables.eol``'``,` `'``variables.eol``'``,` None`)``,` `(``'``pa``...``
| __package__ = ``'``zephir.monitor.agentmanager``'``

Variables Details

  ### TIME_ORIGIN Value:
      datetime.datetime(1970, 1, 1, 0, 0, tzinfo=<zephir.monitor.agentmanage
      r.util.UTC object at 0x2dbd850>)

  ### MONTHS Value:
      {'AOU': 8,
       'APR': 4,
       'AUG': 8,
       'AVR': 4,
       'DEC': 12,
       'FEB': 2,
       'FEV': 2,
       'JAN': 1,
      ...

  ### md5files Value:
      {1: [('variables.eol', 'variables.eol', None),
           ('patch', 'patchs', '.patch'),
           ('patch/variante', 'patchs/variante', '.patch'),
           ('dicos', 'dicos', '.eol'),
           ('dicos/variante', 'dicos/variante', '.eol')],
       2: [('zephir.eol', 'zephir.eol', None),
           ('patch', 'patchs', '.patch'),
           ('patch/variante', 'patchs/variante', '.patch'),
      ...