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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a0f92dfb9d9274eb39be5ec01eeebcf1604e84cc349a1d9cfd6254afb9cf2b8 |
|
MD5 | 351498b6be77b10a4d896b33ac80ed47 |
|
BLAKE2b-256 | fa56caba04b6194072fa256978f67bbf6bdd1eb55cacf7b910c2a6961675105e |