|
|
|
# Limitations
|
|
|
|
MicroPython does not support the full Python standard library.
|
|
|
|
In any shared components (i.e. the protocol part), only a subset of modules can be used.
|
|
|
|
In some cases the code needs to be restructured (e.g. to avoid enums), or custom types and wrappers have to be used (e.g. for timestamps).
|
|
|
|
|
|
|
|
This is an **excerpt** of Python libraries we cannot use for any shared components:
|
|
|
|
* **enum**: restructure code to avoid
|
|
|
|
* **datetime**: use wrapper/abstract usages
|
|
|
|
* **logging**: try to import, alternatively import logger stub
|
|
|
|
* **typing**: try to import, ignore if import fails (only used for annotation) |
|
|
|
\ No newline at end of file |