SYMBOL INDEX (410 symbols across 15 files) FILE: redisco/__init__.py class Client (line 5) | class Client(object): method __init__ (line 6) | def __init__(self, **kwargs): method redis (line 10) | def redis(self): method update (line 13) | def update(self, d): function connection_setup (line 16) | def connection_setup(**kwargs): function get_client (line 24) | def get_client(): FILE: redisco/containers.py class Container (line 10) | class Container(object): method __init__ (line 21) | def __init__(self, key, db=None, pipeline=None): method clear (line 26) | def clear(self): method __getattribute__ (line 30) | def __getattribute__(self, att): method db (line 38) | def db(self): class Set (line 53) | class Set(Container): method add (line 56) | def add(self, value): method remove (line 60) | def remove(self, value): method pop (line 65) | def pop(self): method discard (line 69) | def discard(self, value): method __len__ (line 73) | def __len__(self): method __repr__ (line 77) | def __repr__(self): method __contains__ (line 83) | def __contains__(self, value): method isdisjoint (line 86) | def isdisjoint(self, other): method issubset (line 90) | def issubset(self, other): method __le__ (line 94) | def __le__(self, other): method __lt__ (line 97) | def __lt__(self, other): method __eq__ (line 101) | def __eq__(self, other): method issuperset (line 110) | def issuperset(self, other): method __ge__ (line 114) | def __ge__(self, other): method __gt__ (line 118) | def __gt__(self, other): method union (line 124) | def union(self, key, *others): method intersection (line 131) | def intersection(self, key, *others): method difference (line 138) | def difference(self, key, *others): method update (line 145) | def update(self, *others): method __ior__ (line 149) | def __ior__(self, other): method intersection_update (line 153) | def intersection_update(self, *others): method __iand__ (line 157) | def __iand__(self, other): method difference_update (line 161) | def difference_update(self, *others): method __isub__ (line 165) | def __isub__(self, other): method all (line 169) | def all(self): method copy (line 173) | def copy(self, key): method __iter__ (line 183) | def __iter__(self): method sinter (line 187) | def sinter(self, *other_sets): method sunion (line 194) | def sunion(self, *other_sets): method sdiff (line 201) | def sdiff(self, *other_sets): class List (line 213) | class List(Container): method all (line 215) | def all(self): method __len__ (line 220) | def __len__(self): method __getitem__ (line 223) | def __getitem__(self, index): method __setitem__ (line 232) | def __setitem__(self, index, value): method append (line 235) | def append(self, value): method extend (line 240) | def extend(self, iterable): method count (line 244) | def count(self, value): method index (line 248) | def index(self, value): method pop (line 252) | def pop(self): method pop_onto (line 256) | def pop_onto(self, key): method shift (line 263) | def shift(self): method unshift (line 267) | def unshift(self, value): method remove (line 271) | def remove(self, value, num=1): method reverse (line 275) | def reverse(self): method copy (line 282) | def copy(self, key): method trim (line 292) | def trim(self, start, end): method __iter__ (line 296) | def __iter__(self): method __repr__ (line 299) | def __repr__(self): class TypedList (line 306) | class TypedList(object): method __init__ (line 326) | def __init__(self, key, target_type, type_args=[], type_kwargs={}, **k... method value_type (line 334) | def value_type(self, target_type): method typecast_item (line 343) | def typecast_item(self, value): method typecast_iter (line 349) | def typecast_iter(self, values): method all (line 355) | def all(self): method __len__ (line 359) | def __len__(self): method __getitem__ (line 362) | def __getitem__(self, index): method typecast_stor (line 369) | def typecast_stor(self, value): method append (line 375) | def append(self, value): method extend (line 378) | def extend(self, iter): method __setitem__ (line 381) | def __setitem__(self, index, value): method __iter__ (line 384) | def __iter__(self): method __repr__ (line 388) | def __repr__(self): class SortedSet (line 391) | class SortedSet(Container): method add (line 393) | def add(self, member, score): method remove (line 397) | def remove(self, member): method incr_by (line 401) | def incr_by(self, member, increment): method rank (line 405) | def rank(self, member): method revrank (line 409) | def revrank(self, member): method __getitem__ (line 413) | def __getitem__(self, index): method score (line 419) | def score(self, member): method __len__ (line 423) | def __len__(self): method __contains__ (line 426) | def __contains__(self, val): method members (line 430) | def members(self): method revmembers (line 435) | def revmembers(self): method __iter__ (line 439) | def __iter__(self): method __reversed__ (line 442) | def __reversed__(self): method __repr__ (line 445) | def __repr__(self): method _min_score (line 450) | def _min_score(self): method _max_score (line 454) | def _max_score(self): method lt (line 457) | def lt(self, v, limit=None, offset=None): method le (line 466) | def le(self, v, limit=None, offset=None): method gt (line 475) | def gt(self, v, limit=None, offset=None): method ge (line 484) | def ge(self, v, limit=None, offset=None): method between (line 493) | def between(self, min, max, limit=None, offset=None): method eq (line 502) | def eq(self, value): class NonPersistentList (line 513) | class NonPersistentList(object): method __init__ (line 514) | def __init__(self, l): method members (line 518) | def members(self): method __iter__ (line 521) | def __iter__(self): method __len__ (line 524) | def __len__(self): class Hash (line 528) | class Hash(Container, collections.MutableMapping): method __getitem__ (line 530) | def __getitem__(self, att): method __setitem__ (line 533) | def __setitem__(self, att, val): method __delitem__ (line 536) | def __delitem__(self, att): method __len__ (line 539) | def __len__(self): method __iter__ (line 542) | def __iter__(self): method __contains__ (line 545) | def __contains__(self, att): method __repr__ (line 548) | def __repr__(self): method keys (line 551) | def keys(self): method values (line 554) | def values(self): method _get_dict (line 557) | def _get_dict(self): method _set_dict (line 560) | def _set_dict(self, new_dict): FILE: redisco/models/attributes.py class Attribute (line 15) | class Attribute(object): method __init__ (line 33) | def __init__(self, method __get__ (line 47) | def __get__(self, instance, owner): method __set__ (line 62) | def __set__(self, instance, value): method typecast_for_read (line 65) | def typecast_for_read(self, value): method typecast_for_storage (line 70) | def typecast_for_storage(self, value): method value_type (line 77) | def value_type(self): method acceptable_types (line 80) | def acceptable_types(self): method validate (line 83) | def validate(self, instance): method validate_uniqueness (line 106) | def validate_uniqueness(self, instance, val): class CharField (line 113) | class CharField(Attribute): method __init__ (line 115) | def __init__(self, max_length=255, **kwargs): method validate (line 119) | def validate(self, instance): class BooleanField (line 135) | class BooleanField(Attribute): method typecast_for_read (line 136) | def typecast_for_read(self, value): method typecast_for_storage (line 139) | def typecast_for_storage(self, value): method value_type (line 144) | def value_type(self): method acceptable_types (line 147) | def acceptable_types(self): class IntegerField (line 151) | class IntegerField(Attribute): method typecast_for_read (line 152) | def typecast_for_read(self, value): method typecast_for_storage (line 155) | def typecast_for_storage(self, value): method value_type (line 160) | def value_type(self): method acceptable_types (line 163) | def acceptable_types(self): class FloatField (line 167) | class FloatField(Attribute): method typecast_for_read (line 168) | def typecast_for_read(self, value): method typecast_for_storage (line 171) | def typecast_for_storage(self, value): method value_type (line 176) | def value_type(self): method acceptable_types (line 179) | def acceptable_types(self): class DateTimeField (line 183) | class DateTimeField(Attribute): method __init__ (line 185) | def __init__(self, auto_now=False, auto_now_add=False, **kwargs): method typecast_for_read (line 190) | def typecast_for_read(self, value): method typecast_for_storage (line 196) | def typecast_for_storage(self, value): method value_type (line 204) | def value_type(self): method acceptable_types (line 207) | def acceptable_types(self): class DateField (line 210) | class DateField(Attribute): method __init__ (line 212) | def __init__(self, auto_now=False, auto_now_add=False, **kwargs): method typecast_for_read (line 217) | def typecast_for_read(self, value): method typecast_for_storage (line 223) | def typecast_for_storage(self, value): method value_type (line 231) | def value_type(self): method acceptable_types (line 234) | def acceptable_types(self): class ListField (line 237) | class ListField(object): method __init__ (line 249) | def __init__(self, target_type, method __get__ (line 265) | def __get__(self, instance, owner): method __set__ (line 283) | def __set__(self, instance, value): method value_type (line 286) | def value_type(self): method validate (line 295) | def validate(self, instance): class ReferenceField (line 320) | class ReferenceField(object): method __init__ (line 321) | def __init__(self, method __set__ (line 339) | def __set__(self, instance, value): method __get__ (line 348) | def __get__(self, instance, owner): method value_type (line 359) | def value_type(self): method attname (line 363) | def attname(self): method related_name (line 369) | def related_name(self): method validate (line 372) | def validate(self, instance): class Counter (line 393) | class Counter(IntegerField): method __init__ (line 394) | def __init__(self, **kwargs): method __set__ (line 399) | def __set__(self, instance, value): method __get__ (line 402) | def __get__(self, instance, owner): FILE: redisco/models/base.py function _initialize_attributes (line 19) | def _initialize_attributes(model_class, name, bases, attrs): function _initialize_referenced (line 27) | def _initialize_referenced(model_class, attribute): function _initialize_lists (line 45) | def _initialize_lists(model_class, name, bases, attrs): function _initialize_references (line 53) | def _initialize_references(model_class, name, bases, attrs): function _initialize_indices (line 71) | def _initialize_indices(model_class, name, bases, attrs): function _initialize_counters (line 80) | def _initialize_counters(model_class, name, bases, attrs): function _initialize_key (line 87) | def _initialize_key(model_class, name): function _initialize_manager (line 92) | def _initialize_manager(model_class): class ModelOptions (line 97) | class ModelOptions(object): method __init__ (line 110) | def __init__(self, meta): method get_field (line 113) | def get_field(self, field_name): class ModelBase (line 125) | class ModelBase(type): method __init__ (line 128) | def __init__(cls, name, bases, attrs): class Model (line 148) | class Model(object): method __init__ (line 151) | def __init__(self, **kwargs): method is_valid (line 154) | def is_valid(self): method validate (line 169) | def validate(self): method update_attributes (line 186) | def update_attributes(self, **kwargs): method save (line 194) | def save(self): method key (line 205) | def key(self, att=None): method delete (line 212) | def delete(self): method is_new (line 220) | def is_new(self): method incr (line 227) | def incr(self, att, val=1): method decr (line 233) | def decr(self, att, val=1): method attributes_dict (line 239) | def attributes_dict(self): method id (line 254) | def id(self): method id (line 264) | def id(self, val): method attributes (line 269) | def attributes(cls): method lists (line 278) | def lists(cls): method indices (line 287) | def indices(cls): method references (line 292) | def references(cls): method db (line 297) | def db(cls): method errors (line 302) | def errors(self): method fields (line 309) | def fields(self): method counters (line 315) | def counters(cls): method exists (line 324) | def exists(cls, id): method _initialize_id (line 333) | def _initialize_id(self): method _write (line 337) | def _write(self, _new=False): method _create_membership (line 393) | def _create_membership(self, pipeline=None): method _delete_membership (line 399) | def _delete_membership(self, pipeline=None): method _update_indices (line 410) | def _update_indices(self, pipeline=None): method _add_to_indices (line 415) | def _add_to_indices(self, pipeline): method _add_to_index (line 420) | def _add_to_index(self, att, val=None, pipeline=None): method _delete_from_indices (line 447) | def _delete_from_indices(self, pipeline): method _index_key_for (line 460) | def _index_key_for(self, att, value=None): method _get_index_key_for_non_list_attr (line 476) | def _get_index_key_for_non_list_attr(self, att, value): method _tuple_for_index_key_attr_val (line 488) | def _tuple_for_index_key_attr_val(self, att, val): method _tuple_for_index_key_attr_list (line 491) | def _tuple_for_index_key_attr_list(self, att, val): method _tuple_for_index_key_attr_zset (line 494) | def _tuple_for_index_key_attr_zset(self, att, val, sval): method _index_key_for_attr_val (line 498) | def _index_key_for_attr_val(self, att, val): method __hash__ (line 505) | def __hash__(self): method __eq__ (line 508) | def __eq__(self, other): method __ne__ (line 511) | def __ne__(self, other): method __repr__ (line 514) | def __repr__(self): function get_model_from_key (line 521) | def get_model_from_key(key): function from_key (line 531) | def from_key(key): class Mutex (line 549) | class Mutex(object): method __init__ (line 554) | def __init__(self, instance): method __enter__ (line 557) | def __enter__(self): method __exit__ (line 561) | def __exit__(self, exc_type, exc_value, traceback): method lock (line 564) | def lock(self): method lock_has_expired (line 579) | def lock_has_expired(self, lock): method unlock (line 582) | def unlock(self): method lock_timeout (line 586) | def lock_timeout(self): FILE: redisco/models/exceptions.py class Error (line 4) | class Error(StandardError): class ValidationError (line 7) | class ValidationError(Error): class MissingID (line 10) | class MissingID(Error): class AttributeNotIndexed (line 13) | class AttributeNotIndexed(Error): class FieldValidationError (line 16) | class FieldValidationError(Error): method __init__ (line 18) | def __init__(self, errors, *args, **kwargs): method errors (line 23) | def errors(self): class BadKeyError (line 26) | class BadKeyError(Error): FILE: redisco/models/key.py class Key (line 1) | class Key(str): method __getitem__ (line 2) | def __getitem__(self, key): FILE: redisco/models/managers.py class ManagerDescriptor (line 7) | class ManagerDescriptor(object): method __init__ (line 8) | def __init__(self, manager): method __get__ (line 11) | def __get__(self, instance, owner): class Manager (line 17) | class Manager(object): method __init__ (line 18) | def __init__(self, model_class): method get_model_set (line 21) | def get_model_set(self): method all (line 24) | def all(self): method create (line 27) | def create(self, **kwargs): method get_or_create (line 30) | def get_or_create(self, **kwargs): method filter (line 33) | def filter(self, **kwargs): method exclude (line 36) | def exclude(self, **kwargs): method get_by_id (line 39) | def get_by_id(self, id): method order (line 42) | def order(self, field): method zfilter (line 45) | def zfilter(self, **kwargs): FILE: redisco/models/modelset.py class ModelSet (line 12) | class ModelSet(Set): method __init__ (line 13) | def __init__(self, model_class): method __getitem__ (line 29) | def __getitem__(self, index): method __repr__ (line 39) | def __repr__(self): method __iter__ (line 47) | def __iter__(self): method __len__ (line 51) | def __len__(self): method __contains__ (line 54) | def __contains__(self, val): method get_by_id (line 61) | def get_by_id(self, id): method first (line 65) | def first(self): method filter (line 76) | def filter(self, **kwargs): method exclude (line 83) | def exclude(self, **kwargs): method zfilter (line 90) | def zfilter(self, **kwargs): method order (line 98) | def order(self, field): method limit (line 112) | def limit(self, n, offset=0): method create (line 118) | def create(self, **kwargs): method all (line 125) | def all(self): method get_or_create (line 128) | def get_or_create(self, **kwargs): method db (line 142) | def db(self): method _set (line 150) | def _set(self): method _add_set_filter (line 169) | def _add_set_filter(self, s): method _add_set_exclusions (line 183) | def _add_set_exclusions(self, s): method _add_zfilters (line 197) | def _add_zfilters(self): method _order (line 224) | def _order(self, skey): method _set_with_ordering (line 230) | def _set_with_ordering(self, skey): method _set_without_ordering (line 252) | def _set_without_ordering(self, skey): method _get_limit_and_offset (line 265) | def _get_limit_and_offset(self): method _get_item_with_id (line 275) | def _get_item_with_id(self, id): method _build_key_from_filter_item (line 280) | def _build_key_from_filter_item(self, index, value): method _clone (line 286) | def _clone(self): FILE: redisco/models/utils.py function _encode_key (line 3) | def _encode_key(s): FILE: setup.py function read (line 11) | def read(fname): FILE: tests/__init__.py function all_tests (line 18) | def all_tests(): FILE: tests/bm_write.py class Person (line 10) | class Person(models.Model): function rand_date (line 23) | def rand_date(): function init (line 28) | def init(): function save_persons (line 40) | def save_persons(persons): function enum_persons (line 46) | def enum_persons(): function filter_lt (line 55) | def filter_lt(n): function filter_gte (line 61) | def filter_gte(n): FILE: tests/connection.py class ConnectionTestCase (line 6) | class ConnectionTestCase(unittest.TestCase): method test_redis_version (line 8) | def test_redis_version(self): method test_redis_server (line 11) | def test_redis_server(self): FILE: tests/containers.py class SetTestCase (line 5) | class SetTestCase(unittest.TestCase): method setUp (line 6) | def setUp(self): method tearDown (line 10) | def tearDown(self): method test_common_operations (line 13) | def test_common_operations(self): method test_comparisons (line 47) | def test_comparisons(self): method test_operations_with_updates (line 108) | def test_operations_with_updates(self): method test_methods_that_should_return_new_sets (line 130) | def test_methods_that_should_return_new_sets(self): method test_access_redis_methods (line 151) | def test_access_redis_methods(self): method test_sinter (line 167) | def test_sinter(self): method test_sunion (line 183) | def test_sunion(self): method test_susdiff (line 196) | def test_susdiff(self): class ListTestCase (line 210) | class ListTestCase(unittest.TestCase): method setUp (line 211) | def setUp(self): method tearDown (line 215) | def tearDown(self): method test_common_operations (line 218) | def test_common_operations(self): method test_pop_onto (line 280) | def test_pop_onto(self): method test_delegateable_methods (line 311) | def test_delegateable_methods(self): class TypedListTestCase (line 328) | class TypedListTestCase(unittest.TestCase): method setUp (line 329) | def setUp(self): method tearDown (line 333) | def tearDown(self): method test_basic_types (line 336) | def test_basic_types(self): method test_model_type (line 357) | def test_model_type(self): class SortedSetTestCase (line 378) | class SortedSetTestCase(unittest.TestCase): method setUp (line 379) | def setUp(self): method tearDown (line 383) | def tearDown(self): method test_everything (line 386) | def test_everything(self): method test_delegateable_methods (line 406) | def test_delegateable_methods(self): class HashTestCase (line 421) | class HashTestCase(unittest.TestCase): method setUp (line 422) | def setUp(self): method tearDown (line 426) | def tearDown(self): method test_basic (line 429) | def test_basic(self): method test_delegateable_methods (line 453) | def test_delegateable_methods(self): FILE: tests/models.py class Person (line 12) | class Person(models.Model): method full_name (line 16) | def full_name(self): class Meta (line 19) | class Meta: class RediscoTestCase (line 23) | class RediscoTestCase(unittest.TestCase): method setUp (line 24) | def setUp(self): method tearDown (line 28) | def tearDown(self): class ModelTestCase (line 32) | class ModelTestCase(RediscoTestCase): method test_key (line 34) | def test_key(self): method test_is_new (line 37) | def test_is_new(self): method test_CharFields (line 41) | def test_CharFields(self): method test_save (line 46) | def test_save(self): method test_unicode (line 58) | def test_unicode(self): method test_repr (line 69) | def test_repr(self): method test_update (line 78) | def test_update(self): method test_default_CharField_val (line 91) | def test_default_CharField_val(self): method test_getitem (line 109) | def test_getitem(self): method test_manager_create (line 124) | def test_manager_create(self): method test_indices (line 131) | def test_indices(self): method test_delete (line 142) | def test_delete(self): method test_filter (line 170) | def test_filter(self): method test_exclude (line 189) | def test_exclude(self): method test_first (line 216) | def test_first(self): method test_iter (line 227) | def test_iter(self): method test_sort (line 237) | def test_sort(self): method test_all (line 255) | def test_all(self): method test_limit (line 264) | def test_limit(self): method test_integer_field (line 283) | def test_integer_field(self): method test_sort_by_int (line 297) | def test_sort_by_int(self): method test_filter_date (line 320) | def test_filter_date(self): method test_validation (line 351) | def test_validation(self): method test_validation_of_unique_fields (line 361) | def test_validation_of_unique_fields(self): method test_errors (line 372) | def test_errors(self): method test_custom_validation (line 386) | def test_custom_validation(self): method test_overriden_validation (line 400) | def test_overriden_validation(self): method test_load_object_from_key (line 416) | def test_load_object_from_key(self): method test_uniqueness_validation (line 456) | def test_uniqueness_validation(self): method test_long_integers (line 470) | def test_long_integers(self): method test_slicing (line 482) | def test_slicing(self): method test_get_or_create (line 513) | def test_get_or_create(self): method test_customizable_key (line 529) | def test_customizable_key(self): class Event (line 543) | class Event(models.Model): class DateFieldTestCase (line 547) | class DateFieldTestCase(RediscoTestCase): method test_CharField (line 549) | def test_CharField(self): method test_saved_CharField (line 554) | def test_saved_CharField(self): method test_invalid_date (line 562) | def test_invalid_date(self): method test_indexes (line 568) | def test_indexes(self): method test_auto_now (line 580) | def test_auto_now(self): class CharFieldTestCase (line 594) | class CharFieldTestCase(RediscoTestCase): method test_max_length (line 596) | def test_max_length(self): class Student (line 606) | class Student(models.Model): class FloatFieldTestCase (line 610) | class FloatFieldTestCase(RediscoTestCase): method test_CharField (line 611) | def test_CharField(self): method test_saved_CharField (line 615) | def test_saved_CharField(self): method test_indexing (line 623) | def test_indexing(self): class Task (line 635) | class Task(models.Model): class BooleanFieldTestCase (line 639) | class BooleanFieldTestCase(RediscoTestCase): method test_CharField (line 640) | def test_CharField(self): method test_saved_CharField (line 645) | def test_saved_CharField(self): method test_indexing (line 657) | def test_indexing(self): class ListFieldTestCase (line 674) | class ListFieldTestCase(RediscoTestCase): method test_basic (line 675) | def test_basic(self): method test_list_of_reference_fields (line 709) | def test_list_of_reference_fields(self): method test_lazy_reference_field (line 745) | def test_lazy_reference_field(self): class ReferenceFieldTestCase (line 780) | class ReferenceFieldTestCase(RediscoTestCase): method test_basic (line 781) | def test_basic(self): method test_reference (line 808) | def test_reference(self): method test_lazy_reference_field (line 824) | def test_lazy_reference_field(self): class DateTimeFieldTestCase (line 848) | class DateTimeFieldTestCase(RediscoTestCase): method test_basic (line 850) | def test_basic(self): class CounterFieldTestCase (line 864) | class CounterFieldTestCase(RediscoTestCase): method test_basic (line 866) | def test_basic(self): class MutexTestCase (line 884) | class MutexTestCase(RediscoTestCase): method setUp (line 886) | def setUp(self): method test_instance_should_not_modify_locked (line 891) | def test_instance_should_not_modify_locked(self): method test_lock_expired (line 912) | def test_lock_expired(self):