rmed.blog

Posts tagged 'database'

WaffleConf and multiprocess

25 Aug 2015

Version 0.2.0 of Flask-WaffleConf has just been released and includes support for multiprocess deployments. Here I will explain the problems encountered and the "solution" reached.

Tags: flask database python multiprocess waffleconf extension

Flask-WaffleConf

19 Aug 2015

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!

Tags: database python extension waffleconf flask

breezedb 1.2.0 released

03 Jan 2014

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

Tags: database python breezedb

breezedb 1.1.0 released

19 Dec 2013

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

Tags: database python breezedb