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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7033e1b5f25d33bbef6d1c94195c796373530f6cc0e75758f589a203f0d32364 |
|
MD5 | c805f05d5d721af0e4b2044a0521a883 |
|
BLAKE2b-256 | 003734b75a1f5bd7dc83f58b3b8650754a734fb0a5555919448519cadd10b618 |