This is a repository of libraries designed to be useful for writing MicroPython applications.
 
 
Go to file
Paul Sokolovsky 132ab9520e sqlite3: Use ffilib to load shared library. 2015-06-05 18:39:46 +03:00
__future__
_libc
_markupbase
abc
argparse
asyncio_slow
base64
binascii
binhex
bisect
calendar
cgi
cmd
collections
collections.defaultdict
collections.deque
concurrent.futures
contextlib
copy
cpython-uasyncio
csv
curses.ascii
datetime
dbm
decimal
difflib
email.charset
email.encoders
email.errors
email.feedparser
email.header
email.internal
email.message
email.parser
email.utils
errno
fcntl
ffilib ffilib: Initial version of wrapper for ffi module. 2015-06-05 11:20:44 +01:00
fnmatch
formatter
fractions
ftplib ftplib: Add dummy module. 2015-05-24 17:29:51 +03:00
functools
getopt
getpass
gettext
glob
gzip
hashlib
heapq
hmac
html
html.entities
html.parser
http.client
imaplib imaplib: Add dummy module. 2015-05-25 17:14:25 +03:00
imp
inspect
io
ipaddress
itertools itertools: Release 0.1.1. 2015-05-27 00:57:24 +03:00
json
keyword
locale
logging logging: Add top-level info(), debug() functions. 2015-06-05 01:34:00 +03:00
mailbox
mailcap mailcap: Add dummy module. 2015-05-23 00:09:14 +03:00
mimetypes
multiprocessing
nntplib nntplib: Add dummy module. 2015-05-25 17:09:47 +03:00
numbers
operator
optparse
os
os.path
pathlib
pdb
pickle
pickletools pickletools: Add dummy module. 2015-05-26 00:48:20 +03:00
pkgutil
platform
poplib poplib: Add dummy module. 2015-05-24 17:33:11 +03:00
posixpath
pprint
profile profile: Add dummy module. 2015-05-25 17:57:32 +03:00
pty
pyb
pystone
queue
quopri
random
re-pcre re-pcre: Release 0.2.1. 2015-06-05 18:18:22 +03:00
reprlib
runpy runpy: Add dummy module. 2015-05-24 00:51:28 +03:00
sched
select
selectors
shelve
shlex
shutil
signal
smtplib smtplib: Add dummy module. 2015-05-24 17:28:22 +03:00
socket
socketserver
sqlite3 sqlite3: Use ffilib to load shared library. 2015-06-05 18:39:46 +03:00
stat
statistics
string
stringprep stringprep: Add dummy module. 2015-05-26 01:03:52 +03:00
struct
subprocess
tarfile
telnetlib telnetlib: Add dummy module. 2015-05-26 00:47:40 +03:00
tempfile
test.pystone
test.support
textwrap
threading
time
timeit
trace trace: Add dummy module. 2015-05-24 00:47:52 +03:00
traceback
tty
types
uasyncio uasyncio: Add StreamWriter.get_extra_info() to get peername. 2015-06-03 13:25:27 +00:00
uasyncio.core
uasyncio.queues
ucurses ucurses: Release 0.1. 2015-05-28 10:39:28 +03:00
unicodedata
unittest
upip
urllib
urllib.parse
utarfile
uu
uuid uuid: Add dummy module. 2015-05-24 00:47:16 +03:00
warnings
weakref
zipfile
.gitignore
CONTRIBUTING.md
LICENSE
Makefile
README.md
make_metadata.py

README.md

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
micropython-lib is a highly experimental community project.

Please help to drive it to just "experimental" state by testing
provided packages with MicroPython.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

micropython-lib

micropython-lib is a project to develop a non-monolothic standard library for MicroPython. Each module or package is available as a separate distribution package from PyPI. Each module is either written from scratch or ported from CPython.

Note that the main target of micropython-lib is a "Unix" port of MicroPython (additional ports to support are to be determined). Actual system requirements vary per module. Though if a module is not related to I/O, the module should work without problem on bare-metal ports too (e.g. pyboard).

Usage

micropython-lib packages are published on PyPI (Python Package Index), the standard Python community package repository: http://pypi.python.org/ . On PyPi, you can search for MicroPython related packages and read additional package information.

To install packages from PyPI for usage on your local system, use the pip-micropython tool, which is a simple wrapper around the standard pip tool, which is used to install packages for CPython. The pip-micropython tool can be found in tools subdirectory of the main MicroPython repository (https://github.com/micropython/micropython). Just install the pip-micropython script somewhere on your PATH.

Afterwards, just use pip-micropython in a way similar to pip:

$ pip-micropython install micropython-copy
$ micropython
>>> import copy
>>> copy.copy([1, 2, 3])
[1, 2, 3]

Review the pip-micropython source code for more info.

Development

To install modules during development, use make install. By default, all available packages will be installed. To install a specific module, add the MOD=<module> parameter to the end of the make install command.

More information is on GitHub and in the MicroPython forums:

Guidelines for packaging MicroPython modules for PyPI: