Skip to content

A lightweight wrapper around FOM (Fluid Object Mapper) for making use of FluidDB from within Django

License

Notifications You must be signed in to change notification settings

fluidinfo/django-fluidinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-fluidinfo

(c) FluidInfo 2011 [email protected]

License: New BSD License

Bridging Django to Fluidinfo with FOM

The purpose of this package is to make it easy to use FOM to define models for Django based applications that need to make use of Fluidinfo as their database backend (instead of a traditional relational database).

To read the full documentation make sure you have Sphinx installed, change to the doc directory and type:

make html

Alternatively, you can view the documentation online here:

http://packages.python.org/django-fluidinfo/

How..?

It works by wrapping the FOM based classes in Django-esque classes so you can do the following:

from django_fluidinfo import models

class foo(models.Model):
    bar = models.CharField('test/namespace/bar_tag')
    baz = models.IntegerField('test/namespace/baz_tag')

These models can then be used with specially created ModelForms that function in a similar fashion to the traditional Django ModelForms:

from django_fluidinfo.forms import ModelForm

class FooForm(ModelForm):
    class Meta:
            model = Foo

Take a look in the django_fluidinfo/tests.py file for example usage. Expect more comprehensive documentation very soon.

While this doesn't reflect the dynamic nature of Fluidinfo's schema I'd like to point out that my aim is to give Djangonaughts a familiar "no brainer" route to using Fluidinfo.

I expect them to dig into FOM once they grok what Fluidinfo is about. ;-)

Comments and feedback most welcome!

About

A lightweight wrapper around FOM (Fluid Object Mapper) for making use of FluidDB from within Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages