SQLite3 and web server

Cecil Westerhof Cecil at decebal.nl
Fri Aug 21 08:11:47 CEST 2015


At the moment I serve a AngularJS web application with:
    python3 -m http-server

This only servers static html pages with the data contained in js
files, like:
        $scope.links = [
            { desc: 'Album',            url: 'https://plus.google.com/collection/MuwPX'                  },
            { desc: 'Heron Sunbathing', url: 'https://plus.google.com/+CecilWesterhof/posts/bHvSzBGobEj' },
            { desc: 'Heron Fishing',    url: 'https://plus.google.com/+CecilWesterhof/posts/TY3asc5oCnB' },
            { desc: 'Water Lily',       url: 'https://plus.google.com/+CecilWesterhof/posts/AtTwhL8SdnH' },
            { desc: 'Tree at Pond',     url: 'https://plus.google.com/+CecilWesterhof/posts/TyiZbUWdnrm' },
            { desc: 'Fish',             url: 'https://plus.google.com/+CecilWesterhof/posts/MoQ7vXs8HqP' },
            { desc: 'Fountain',         url: 'https://plus.google.com/+CecilWesterhof/posts/BDYkPKSMUwZ' },
            { desc: 'Digitalis',        url: 'https://plus.google.com/+CecilWesterhof/posts/ed3ZGNzb8kM' },
            { desc: 'Sunset',           url: 'https://plus.google.com/+CecilWesterhof/posts/DPbHHSFXBY4' },
            { desc: 'Digitalis 2',      url: 'https://plus.google.com/+CecilWesterhof/posts/ZZtSUwNb6RC' },
            { desc: 'Water Lilies',     url: 'https://plus.google.com/+CecilWesterhof/posts/LY62DqLEJhG' },
            { desc: 'Flower',           url: 'https://plus.google.com/+CecilWesterhof/posts/XFKyTcoakcy' },
            { desc: 'Waterfalls',       url: 'https://plus.google.com/+CecilWesterhof/posts/bfg5irDAn2T' },
            { desc: 'Frogs',            url: 'https://plus.google.com/+CecilWesterhof/posts/jKr5B6EQyo1' },
            { desc: 'Flowers',          url: 'https://plus.google.com/+CecilWesterhof/posts/iPQbBrTbcnm' },
            { desc: 'Sheep',            url: 'https://plus.google.com/+CecilWesterhof/posts/3a2mBo7om4H' },
            { desc: 'Beetle',           url: 'https://plus.google.com/+CecilWesterhof/posts/KnNtis2Gqxf' },
            { desc: 'Dove',             url: 'https://plus.google.com/+CecilWesterhof/posts/XA5RcC2Cxbv' },
            { desc: 'City Walk',        url: 'https://plus.google.com/+CecilWesterhof/posts/R9me9AKQC6n' },
            { desc: 'Boar',             url: 'https://plus.google.com/+CecilWesterhof/posts/9bfpBiQPYen' },
            { desc: 'Bird',             url: 'https://plus.google.com/+CecilWesterhof/posts/X6gFE3oxXLY' },
            { desc: 'Goose',            url: 'https://plus.google.com/+CecilWesterhof/posts/H4w6JvnQkcU' },
            { desc: 'On mothers wings', url: 'https://plus.google.com/+CecilWesterhof/posts/PY4Nm1TASvx' },
            { desc: 'Flowers',          url: 'https://plus.google.com/+CecilWesterhof/posts/9o1i2NgoSfV' },
        ]

I would like to retrieve the information out a SQLite3 database. I did
some Googling, but until now I did not find something useful. How
would I implement this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the Python-list mailing list