# Module `lib.tools`

Useful classes and functions

Expand source code

    # Distributed under Pycameresp License
    # Copyright (c) 2023 Remi BERTHOLET
    """ Useful classes and functions """

## Sub-modules

`lib.tools.archiver`

  Archiver files functions

`lib.tools.awake`

  Manage the battery

`lib.tools.battery`

  Manage the battery

`lib.tools.builddate`

  Build date

`lib.tools.console`

  Standard console redirector

`lib.tools.date`

  Date and time utilities

`lib.tools.encryption`

  Encryption utility functions

`lib.tools.exchange`

  Classes for exchanging files between the device and the computer

`lib.tools.features`

  Allows you to activate/deactivate features from main.py

`lib.tools.filesystem`

  Miscellaneous path functions

`lib.tools.fnmatch`

  Unix filename pattern matching. Extracted from cpython fnmatch.py

`lib.tools.info`

  Device informations

`lib.tools.jsonconfig`

  Functions for managing the json configuration. All configuration classes end the name with the word Config. For each of these classes, a json file …

`lib.tools.keyboard_linux`

  Getch utilities for linux and osx

`lib.tools.keyboard_mcp`

  Getch utilities for micropython

`lib.tools.keyboard_win32`

  Getch utilities for windows

`lib.tools.lang`

  Language selected and regional time

`lib.tools.lang_english`

  English texts

`lib.tools.lang_french`

  Textes en francais

`lib.tools.linearfunction`

  Linear function tools

`lib.tools.logger`

  Logger and exception functions

`lib.tools.plugin`

  Allows automatic plugin start without editing python scripts. This searches for startup.py files in lib directory and runs the 'startup' function

`lib.tools.region`

  Language selected and regional time

`lib.tools.sdcard`

  Sdcard management class

`lib.tools.strings`

  Strings utilities

`lib.tools.support`

  List the supported configuration according to the hardware

`lib.tools.system`

  System utilities functions

`lib.tools.tasking`

  Miscellaneous utility functions

`lib.tools.terminal`

  Getch and vt100 utilities

`lib.tools.topic`

  List topic names used throughout the application …

`lib.tools.useful`

  Miscellaneous utility functions

`lib.tools.watchdog`

  Watchdog class