skip to navigation
skip to content

Not Logged In

tastypie-redis-resource 0.0.8

Tastypie Redis Resource

Latest Version: 0.0.9

Redis Resource for Tastypie

Allows you to create delicious APIs for Redis.

Settings

REDIS_HOST = localhost
REDIS_PORT = 6379
REDIS_DATABASE = "database_name"

Example of Usage

from tastypie import fields
from tastypie.authorization import Authorization

from tastypie_redis.resources import RedisResource, Document

class DocumentResource(RedisResource):
    id = fields.CharField(attribute="_id")
    title = fields.CharField(attribute="title", null=True)
    entities = fields.ListField(attribute="entities", null=True)

    class Meta:
        resource_name = "documents"
        list_allowed_methods = ["delete", "get", "post"]
        authorization = Authorization()
        object_class = Document
        collection = "documents" # collection name
 
File Type Py Version Uploaded on Size
tastypie-redis-resource-0.0.8.tar.gz (md5) Source 2013-12-13 2KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 72 downloads in the last week
  • 515 downloads in the last month