micropython-lib/python-stdlib
Andrew Leech d9f4463adf pdb: Add module from cpython 3.11.
source: https://github.com/python/cpython/blob/3.11/Lib/pdb.py
2025-06-11 09:16:52 +10:00
..
__future__
abc
argparse
base64
bdb bdb: Add initial micropython support. 2025-06-11 09:16:51 +10:00
binascii
bisect
cmd
code code: Add module from cpython 3.11. 2025-06-11 09:16:52 +10:00
codeop codeop: Add module from cpython 3.11. 2025-06-11 09:16:52 +10:00
collections
collections-defaultdict
contextlib
copy
curses.ascii
datetime
errno errno: Add ENOTCONN constant. 2025-06-05 16:59:50 +10:00
fnmatch
functools
gzip
hashlib
hashlib-core
hashlib-sha224
hashlib-sha256
hashlib-sha384
hashlib-sha512
heapq
hmac
html
inspect inspect: Implement iscoroutinefunction and iscoroutine. 2025-04-14 10:26:38 +10:00
io
itertools
keyword
linecache linecache: Add module from cpython 3.11. 2025-06-11 09:16:51 +10:00
locale
logging logging: Allow logging.exception helper to handle tracebacks. 2025-06-06 11:46:43 +10:00
operator
os stdlib/os: Provide namedtuple response for os.stat(). 2025-06-11 09:16:51 +10:00
os-path
pathlib
pdb pdb: Add module from cpython 3.11. 2025-06-11 09:16:52 +10:00
pickle
pkg_resources
pkgutil
pprint
quopri
random
shutil
ssl
stat
string
struct
tarfile
tarfile-write
tempfile
textwrap
threading
time
tokenize tokenize: Add minimal stub to support linecache. 2025-06-11 09:16:51 +10:00
traceback
types
unittest unittest: Always use "raise" with an argument. 2024-11-18 12:00:38 +11:00
unittest-discover
uu
venv
warnings
zlib
README.md

README.md

CPython Standard Library

The packages in this directory aim to provide compatible implementations of modules from the Python Standard Library, with the goal of allowing existing Python code to run un-modified on MicroPython.

Implementation

Many packages are implemented in pure Python, often based on the original CPython implementation. (e.g. collections.defaultdict)

Some packages are based on or extend from the built-in "micro" modules in the MicroPython firmware, providing additional functionality that didn't need to be written in C (e.g. collections, socket, struct).

Future plans (ideas for contributors):

  • Add README.md to each library explaining compatibility and limitations.