Metadata-Version: 1.1
Name: tastypie-redis-resource
Version: 0.0.7
Summary: Tastypie Redis Resource
Home-page: https://github.com/tunix/tastypie-redis-resource
Author: Alper Kanat
Author-email: tunix@raptiye.org
License: UNKNOWN
Description: -----------------------------
        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
        
Keywords: tastypie rest api module resource redis
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Topic :: Internet
