rmed

blog

Posts tagged: "database"

Flask-WaffleConf

2015-08-19 09:55 +0200

Flask-WaffleConf is a Flask extension that allows you to store configuration variables in the database, read them on startup and update them on runtime. It's kind of an experiment in order to try making a Flask extension from scratch and add the functionality to the website in a modular way. If you are wondering about the reason behind the name, go ask @adolphenom @captainepoch.

The way it works is pretty simple:

  • You define a database model that will act as configuration store
  • Instantiate the WaffleConf object with the application
  • Register the view with any Blueprint

For the time being (you know... alpha state), I've just added a peewee configuration store, but creating stores for other databases should not be too complicated: simply subclass the WaffleStore class and you are ready to go. However, I would recommend checking the documentation first, just in case :)

Released under GPLv2+ license.

Comments, issues and pull requests are more than welcome!

breezedb 1.2.0 released

2014-01-03 13:52 +0100

As I said in a previous post, this release changes the way the library works drastically and is not compatible with previous versions.

Here's a rough changelog:

  • New license: GPLv2
  • New JSON structure
  • Database now consists of a single file
  • Improved special character support
  • Improved exception handling
  • Added several database operations

As always, report any bugs in the issue tracker.

Latest stable source code is available in the master branch of the Github repository and installed by running:

$ python setup.py install

Also installable via PyPI by using:

$ pip install breezedb

breezedb 1.1.0 released

2013-12-19 18:01 +0100

breezedb is my little file-based database experiment. It started as a way of storing data (not A LOT of data) by using XML file structure, although this is going to change in future versions of the library. Therefore, release 1.1.x is to be considered as legacy, as it will not be compatible with future versions.

This release includes some major changes:

  • New query parser
  • Operation fixes
  • Minor improvements

As well as some issues, available in the issue tracker.

Source code is available in the Github repository and is installable via that source or PyPI by using:

$ pip install breezedb

or

python setup.py install