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
File details
Details for the file tastypie-redis-resource-0.0.9.tar.gz.
File metadata
- Download URL: tastypie-redis-resource-0.0.9.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f3515e81c2325e86e03ae8a0236abedaee2a40587688dddee56c155b849bf36
|
|
| MD5 |
1bab5b2239b5fc6288eed224bc611dae
|
|
| BLAKE2b-256 |
2d49e74d003eb10f344b46e6ae56de7fd489fd42a6063de19e57d130d677236d
|