Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A note-taking example web application for Picoweb web pico-framework. (Ported from Flask original)

Project description

Notes Pico is a simple note-taking web application. It was originally written by Charles Leifer as a demo of how to write a simple, but slick web application using the Flask web micro-framework. The application is described in the blog post . Notes Pico is a port of this application to Picoweb web pico-framework for MicroPython. It was ported by Paul Sokolovsky.

NOTE: Recent versions of uasyncio async framework and Picoweb web framework, and thus Notes Pico, require “advanced” fork of MicroPython at .

Deploying on MicroPython “Unix” version

To install and run the application, you should install MicroPython “Unix” port as described at . Once you have micropython executable in your PATH (recommended, but not strictly necessary), change directory to where you want to install the app (~/tmp/ should be good for a quick test) and install notes-pico package:

micropython -m upip install -p app notes-pico

app (argument of -p option) is a subdirectory into which to install the application. To run the app, execute:

MICROPYPATH=app micropython -m notes_pico

This will initialize note storage and output a URL to open in a browser:

* Running on

Open the link and start adding notes (after typing text press “Add note” button or press Ctrl+Enter). Note that Picoweb port is intended to be simple and low-resource, so supports only plain-text notes, unlike the original Flask application.

Deploying on embedded MicroPython targets

Notes Pico can also run on “embedded” (microcontroller) MicroPython targets with networking capabilities and suitable heap size (TBC). As Notes Pico is full-stack application and contains relatively a lot of code, the only realistic way to deploy it on such systems is using “frozen bytecode” approach, where pre-compiled Python modules are made part of the binary firmware image to flash on the target. Instructions below use MicroPython ESP8266 port as an example.

  1. cd micropython/esp8266
  2. micropython -m upip install -p modules notes-pico
  3. make
  4. make deploy (see README in the directory for more params)
  5. Boot ESP8266 module, run following commands at the device prompt.
  6. import notes_pico.__main__
  7. notes_pico.__main__.main(host="")
  8. Connect with a web browser to http://DEVICE_IP:8081, where DEVICE_IP is an IP address of ESP8266 device. (Consult MicroPython ESP8266 port documentation for network connection setup.)

Storage backends

Notes Pico supports 3 storage backends:

  • BTree
  • Filesystem
  • SQLite3

As a first step towards portability to MicroPython microcontroller versions, the default backend for the package installed from PyPI via the commands in the previous section is BTree database. The notes are stored in notes.db database file of the current directory, in BerkeleyDB 1.x format.

If you would like to try filesystem/SQLite3 backend, you’ll need to checkout and edit file notes_pico/ The repository has a convenience Makefile to install dependencies and run the application, similar to the effect achieved by the commands above.

Known issues and limitations

As mentioned above, Picoweb port of the application supports only plain-text notes, no formatting, images or videos.

Embedded targets support is experimental, added in version 0.8.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
notes-pico-0.8.9.tar.gz (7.8 kB) Copy SHA256 hash SHA256 Source None Feb 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page