.. _pythonStd: Python Standard Library ======================= MicroPython provides built-in modules with functionality similar to the Python standard library (for example ``os`` and ``time``), as well as MicroPython-specific modules (for example ``bluetooth`` and ``machine``). Most Python standard library modules implement a subset of the equivalent Python module's functionality, and in a few cases provide some MicroPython-specific extensions (for example ``array`` and ``os``). Due to resource constraints or other limitations, some ports or firmware versions may not include all the functionality documented here. To allow extension, some built-in modules can be extended from Python code loaded into the device's file system. The following are standard Python libraries that have been "miniaturized" to conform to the MicroPython philosophy. They provide the core functionality of the module and are intended as direct replacements for the standard Python libraries. .. toctree:: :maxdepth: 1 array.rst asyncio.rst binascii.rst builtins.rst cmath.rst collections.rst errno.rst gc.rst gzip.rst hashlib.rst heapq.rst io.rst json.rst marshal.rst math.rst os.rst platform.rst ../micropython/random.rst re.rst select.rst socket.rst ssl.rst struct.rst sys.rst time.rst zlib.rst ../micropython/_thread.rst .. Sync script: the following documents are not included in any toctree on the source site; they are mounted here as hidden navigation to ensure a warning-free build and keep the content reachable .. toctree:: :hidden: :maxdepth: 1 ubinascii ucollections uerrno uhashlib uheapq uio ujson uos ure uselect usocket ussl ustruct utime uzlib