Posts with the tag Bottle

Memcached used as a server side cache for full pages of a Bottle web app

# Install memcached on Arch Linux ARM:
pacman -S memcached
# Start the memcached daemon manually:
memcached -d -m 128 -l 127.0.0.1 -p 11211 -u nobody
# Check the systemd startup file /usr/lib/systemd/system/memcached.service
# Set up memcached to start automatically at system startup
systemctl enable memcached.service
# See http://www.pontikis.net/blog/install-memcached-php-archlinux for more info

# Install the memcache...

Read on

Logging Requests With Bottle Web Applications

Please note that I gave up on this project and started the more generic wsgi-request-logger instead. See this post.

The reasons to do so, are as follows:

  • A bottle plugin is not being called when a non-existent route (404) being hit.
  • A bottle plugin has problems with 500 server errors. It...

Read on

Writing a Small Bottle Web Application with AJAX API For The Koukaam NETIO230A

I needed an easy way to switch power outlets on and off remotely. So I bought a Koukaam NETIO230A and wrote a Python module to communicate with it via TCP. Now I added a Bottle based web app written in Python that uses that class to...

Read on