@@ -6,35 +6,21 @@ MicroPython libraries
6
6
Python standard libraries and micro-libraries
7
7
---------------------------------------------
8
8
9
- These libraries are inherited from MicroPython.
10
- They are similar to the standard Python libraries with the same name
11
- or with the "u" prefix dropped.
9
+ The libraries below are inherited from MicroPython.
10
+ They are similar to the standard Python libraries with the same name.
12
11
They implement a subset of or a variant of the corresponding
13
12
standard Python library.
14
13
15
- .. warning ::
16
-
17
- Though these MicroPython-based libraries are available in CircuitPython,
18
- their functionality may change in the future, perhaps significantly.
19
- As CircuitPython continues to develop, new versions of these libraries will
20
- be created that are more compliant with the standard Python libraries.
21
- You may need to change your code later if you rely
22
- on any non-standard functionality they currently provide.
23
-
24
14
CircuitPython's long-term goal is that code written in CircuitPython
25
15
using Python standard libraries will be runnable on CPython without changes.
26
16
27
- Some libraries below are not enabled on CircuitPython builds with
17
+ These libraries are not enabled on CircuitPython builds with
28
18
limited flash memory, usually on non-Express builds:
29
- ``uerrno ``, ``ure ``.
30
-
31
- Some libraries are not currently enabled in any CircuitPython build, but may be in the future:
32
- ``uio ``, ``ujson ``, ``uzlib ``.
19
+ ``binascii ``, ``errno ``, ``json ``, ``re ``.
33
20
34
- Some libraries are only enabled only WiFi-capable ports (ESP8266, nRF)
35
- because they are typically used for network software:
36
- ``binascii ``, ``hashlib ``, ``uheapq ``, ``uselect ``, ``ussl ``.
37
- Not all of these are enabled on all WiFi-capable ports.
21
+ These libraries are not currently enabled in any CircuitPython build, but may be in the future,
22
+ with the ``u `` prefix dropped:
23
+ ``uctypes ``, ``uhashlib ``, ``uzlib ``.
38
24
39
25
.. toctree ::
40
26
:maxdepth: 1
@@ -44,13 +30,14 @@ Not all of these are enabled on all WiFi-capable ports.
44
30
array.rst
45
31
binascii.rst
46
32
collections.rst
33
+ errno.rst
47
34
gc.rst
48
35
hashlib.rst
36
+ io.rst
37
+ json.rst
38
+ re.rst
49
39
sys.rst
50
- uerrno.rst
51
- uio.rst
52
- ujson.rst
53
- ure.rst
40
+ uctypes.rst
54
41
uselect.rst
55
42
usocket.rst
56
43
ussl.rst
@@ -59,8 +46,8 @@ Not all of these are enabled on all WiFi-capable ports.
59
46
Omitted functions in the ``string `` library
60
47
-------------------------------------------
61
48
62
- A few string operations are not enabled on CircuitPython
63
- M0 non-Express builds , due to limited flash memory:
49
+ A few string operations are not enabled on small builds
50
+ (usually non-Express) , due to limited flash memory:
64
51
``string.center() ``, ``string.partition() ``, ``string.splitlines() ``,
65
52
``string.reversed() ``.
66
53
@@ -78,15 +65,3 @@ versions of CircuitPython.
78
65
btree.rst
79
66
framebuf.rst
80
67
micropython.rst
81
- network.rst
82
- uctypes.rst
83
-
84
- Libraries specific to the ESP8266
85
- ---------------------------------
86
-
87
- The following libraries are specific to the ESP8266.
88
-
89
- .. toctree ::
90
- :maxdepth: 2
91
-
92
- esp.rst
0 commit comments