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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd2cd1d324d7db9a13dc082c953c1743a0c86cc60e5b5bae1d6ce9fac33957f |
|
MD5 | 7e15a8b50bf48491eb12acfcc1693215 |
|
BLAKE2b-256 | 28866617128a2157c69559fb4331aa0540e62a420b16c963ab650a8c3d4f888f |