Import common modules into Pycardium
Right now, the standard-library supported by Pycardium is really really small. We should expand it so people can use normal stdlib modules they know from CPython.
For the most part this means using the implementations from micropython-lib. To do so, please add micropython-lib as a new submodule in lib/micropython/micropython-lib
and then symlink the relevant files in pycardium/modules/py
and add them to pycardium/modules/py/meson.build
.
Some modules may have requirements that are not (yet) available in Pycardium. We need to find a way to add these as well.
The following modules are important in my opinion (but please don't limit yourself to this list):
-
binascii
-
collections
(+deque
&defaultdict
) -
contextlib
(ucontextlib
) -
functools
-
itertools
-
string
-
struct
-
uuid
( micropython-lib does not yet implement this module, so we need a version from somewhere else. Maybe even contribute an implementation upstream?)
We might run into space issues if we try to include too much. The following would be nice to have, but are not entirely necessary: