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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e48a9e3db039660601e1354fdefb724193e2627c79262c1881c1a1ee55bac4d |
|
MD5 | c22a9b2a107b614b079a19aa7ab448f3 |
|
BLAKE2b-256 | 04619f1bfb1e72d897c8e10bf5827d37e6cab72d4cba1ef89b3a8712efff0251 |