Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-kvstore 1.0

    Download button

    No screenshots available
    Downloads: 214  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Six Apart Ltd. | More programs
    BSD License / FREE
    January 27th, 2010, 14:17 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-kvstore description

    An extensible key-value store backend for Django applications

    django-kvstore is a Django module that provides an abstraction layer for accessing a key-value storage.

    Configuring your key-value store is a matter of adding a statement in this form to your Django settings module:

    KEY_VALUE_STORE_BACKEND = 'scheme://store?parameters'

    Where scheme is one of the following, persistent stores:

     * db (local table accessed through Django's database connection)
     * googleappengine (Google AppEngine data store)
     * sdb (Amazon SimpleDB)
     * tokyotyrant (Tokyo Tyrant)

    And some non-persistent stores, provided mainly for testing purposes:

     * locmem
     * memcached

    store and parameters varies from one backend to another. Refer to the documentation included in each backend implementation for further details.

    You can define a django_kvstore-backed custom model, in a fashion similar to Django models (although it does not support querying, except by primary key lookup).

    Here's an example of a custom model class using django_kvstore:

    from django_kvstore import models

    class MyData(models.Model):
     my_key = models.Field(pk=True)
     foo = models.Field()
     bar = models.Field()


    Typical usage for such a model:

    key = "something_unique"
    data = MyData.get(key)
    if data is None:
     data = MyData(my_key=key)
     data.foo = "foo"
     data.bar = "bar"
     data.save()


    and deletion:

    key = "something_unique"
    data = MyData.get(key)
    if data is not None:
     data.delete()



    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    store backend | Django app | key-value | store | backend

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM