Python standard libraries
Frequently used Python standard module examples – MicroPython official documentation link.
Libraries |
Supported or not |
Description |
---|---|---|
array |
✅ |
arrays of numeric data |
asyncio |
✅ |
asynchronous I/O scheduler |
binascii |
✅ |
binary/ASCII conversions |
builtins |
✅ |
builtin functions and exceptions |
collections |
✅ |
collection and container types |
errno |
✅ |
system error codes |
gc |
✅ |
control the garbage collector |
gzip |
❌ |
gzip compression & decompression |
hashlib |
✅ |
hashing algorithms |
heapq |
✅ |
heap queue algorithm |
os |
⭕ |
basic “operating system” services |
platform |
✅ |
access to underlying platform’s identifying data |
random |
✅ |
generate random numbers |
re |
✅ |
simple regular expressions |
select |
✅ |
wait for events on a set of streams |
socket |
✅ |
socket module |
ssl |
⏳ |
SSL/TLS module |
struct |
✅ |
pack and unpack primitive data types |
sys |
⭕ |
system specific functions |
time |
✅ |
time related functions |
zlib |
❌ |
zlib compression & decompression |