Tastypie Redis Resource
Project 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tastypie-redis-resource-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f3e57bd0569a0fc66808e78c5622f9de80d6859f3485e238e3a190332f675c |
|
MD5 | 78b6dbb49aec8cf9a913bad0fed37a8b |
|
BLAKE2b-256 | d160ad2a9e63b9e15fd5baec58e30c36c53bf00ebb7630810b37a89422289492 |