<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Setting up Bottle - python web framework]]></title><description><![CDATA[<p dir="auto">I created a video on how I setup the Omega to install and run Bottle, a python web framework.</p>
<p dir="auto"><a href="https://www.youtube.com/watch?v=GJCcIlCJOx4" rel="nofollow">https://www.youtube.com/watch?v=GJCcIlCJOx4</a></p>
<p dir="auto">There is another post in the forums, 'Python web framework' which shows you how to use python3.  This particular setup video uses python2.</p>
<p dir="auto">Here is the summary of steps:</p>
<pre><code>vi /etc/opkg.conf
</code></pre>
<p dir="auto">— delete line ‘option check_signature 1'</p>
<pre><code>opkg update
mkdir -p /home/bottle
cd /home/bottle
wget --no-check-certificate https://github.com/defnull/bottle/raw/master/bottle.py
opkg install python-light
opkg install python-email
opkg install python-codecs
opkg install python-logging
opkg install python-openssl

vi bottle_test.py
</code></pre>
<p dir="auto">paste:</p>
<pre><code>from bottle import route, run

@route('/hello/&lt;username&gt;')
def hello(username):
    return "Hello {0}.  Welcome to the Omega World!".format(username)

run(host='0.0.0.0', port=8080, debug=True)
</code></pre>
<p dir="auto">to run:</p>
<pre><code>python bottle_test.py
</code></pre>
]]></description><link>http://community.onion.io/topic/98/setting-up-bottle-python-web-framework</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 05:26:59 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/98.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Nov 2015 06:42:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting up Bottle - python web framework on Sat, 28 Nov 2015 00:22:28 GMT]]></title><description><![CDATA[<p dir="auto">I created a video on how I setup the Omega to install and run Bottle, a python web framework.</p>
<p dir="auto"><a href="https://www.youtube.com/watch?v=GJCcIlCJOx4" rel="nofollow">https://www.youtube.com/watch?v=GJCcIlCJOx4</a></p>
<p dir="auto">There is another post in the forums, 'Python web framework' which shows you how to use python3.  This particular setup video uses python2.</p>
<p dir="auto">Here is the summary of steps:</p>
<pre><code>vi /etc/opkg.conf
</code></pre>
<p dir="auto">— delete line ‘option check_signature 1'</p>
<pre><code>opkg update
mkdir -p /home/bottle
cd /home/bottle
wget --no-check-certificate https://github.com/defnull/bottle/raw/master/bottle.py
opkg install python-light
opkg install python-email
opkg install python-codecs
opkg install python-logging
opkg install python-openssl

vi bottle_test.py
</code></pre>
<p dir="auto">paste:</p>
<pre><code>from bottle import route, run

@route('/hello/&lt;username&gt;')
def hello(username):
    return "Hello {0}.  Welcome to the Omega World!".format(username)

run(host='0.0.0.0', port=8080, debug=True)
</code></pre>
<p dir="auto">to run:</p>
<pre><code>python bottle_test.py
</code></pre>
]]></description><link>http://community.onion.io/post/723</link><guid isPermaLink="true">http://community.onion.io/post/723</guid><dc:creator><![CDATA[Patrick Ryan]]></dc:creator><pubDate>Sat, 28 Nov 2015 00:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Setting up Bottle - python web framework on Tue, 17 Nov 2015 15:23:52 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for sharing. I think Bottle has a lot of potential on the Omega as it is quite small and easy to use.</p>
]]></description><link>http://community.onion.io/post/728</link><guid isPermaLink="true">http://community.onion.io/post/728</guid><dc:creator><![CDATA[Fred Blais]]></dc:creator><pubDate>Tue, 17 Nov 2015 15:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Setting up Bottle - python web framework on Tue, 17 Nov 2015 16:22:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/110">@Patrick-Ryan</a> Nice tutorial!</p>
]]></description><link>http://community.onion.io/post/733</link><guid isPermaLink="true">http://community.onion.io/post/733</guid><dc:creator><![CDATA[Boken Lin]]></dc:creator><pubDate>Tue, 17 Nov 2015 16:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Setting up Bottle - python web framework on Thu, 05 May 2016 19:41:52 GMT]]></title><description><![CDATA[<p dir="auto">Cool, thanks for that. I was wondering if it is possible and feasible to add websocket support to this setup.</p>
<p dir="auto">Or might there be a way to add websocket support to the uhttp deamon. This is running the oem onion Web console AFAIK. Would it make any sense to look into making uhttp somehow support websockets and simple lua scripts?</p>
<p dir="auto">Or, can ubus be used to push system events into a page?</p>
]]></description><link>http://community.onion.io/post/5380</link><guid isPermaLink="true">http://community.onion.io/post/5380</guid><dc:creator><![CDATA[Joost Oostdijk]]></dc:creator><pubDate>Thu, 05 May 2016 19:41:52 GMT</pubDate></item></channel></rss>