evennia.typeclassesΒΆ
This sub-package defines the typeclass-system, a way to wrap database access into almost-normal Python classes. Using typeclasses one can work in normal Python while having the luxury of persistent data storage at every turn. ObjectDB, ChannelDB, AccountDB and ScriptDB all inherit from the models in this package. Here is also were the Attribute and Tag models are defined along with their handlers.
- evennia.typeclasses.attributes
IAttributeInMemoryAttributeAttributePropertyNAttributePropertyAttributeAttribute.db_keyAttribute.db_valueAttribute.db_strvalueAttribute.db_categoryAttribute.db_lock_storageAttribute.db_modelAttribute.db_attrtypeAttribute.db_date_createdAttribute.lock_storageAttribute.valueAttribute.DoesNotExistAttribute.MultipleObjectsReturnedAttribute.accountdb_setAttribute.attrtypeAttribute.categoryAttribute.channeldb_setAttribute.date_createdAttribute.get_next_by_db_date_created()Attribute.get_previous_by_db_date_created()Attribute.idAttribute.keyAttribute.modelAttribute.objectdb_setAttribute.pathAttribute.scriptdb_setAttribute.strvalueAttribute.typename
IAttributeBackendIAttributeBackend.__init__()IAttributeBackend.query_all()IAttributeBackend.query_key()IAttributeBackend.query_category()IAttributeBackend.get()IAttributeBackend.reset_cache()IAttributeBackend.do_create_attribute()IAttributeBackend.create_attribute()IAttributeBackend.do_update_attribute()IAttributeBackend.do_batch_update_attribute()IAttributeBackend.do_batch_finish()IAttributeBackend.batch_add()IAttributeBackend.do_delete_attribute()IAttributeBackend.delete_attribute()IAttributeBackend.update_attribute()IAttributeBackend.do_batch_delete()IAttributeBackend.clear_attributes()IAttributeBackend.get_all_attributes()
InMemoryAttributeBackendInMemoryAttributeBackend.__init__()InMemoryAttributeBackend.query_all()InMemoryAttributeBackend.query_key()InMemoryAttributeBackend.query_category()InMemoryAttributeBackend.do_create_attribute()InMemoryAttributeBackend.do_update_attribute()InMemoryAttributeBackend.do_batch_update_attribute()InMemoryAttributeBackend.do_batch_finish()InMemoryAttributeBackend.do_delete_attribute()
ModelAttributeBackendModelAttributeBackend.__init__()ModelAttributeBackend.query_all()ModelAttributeBackend.query_key()ModelAttributeBackend.query_category()ModelAttributeBackend.do_create_attribute()ModelAttributeBackend.do_update_attribute()ModelAttributeBackend.do_batch_update_attribute()ModelAttributeBackend.do_batch_finish()ModelAttributeBackend.do_delete_attribute()
AttributeHandlerDbHolderNickTemplateInvalidinitialize_nick_templates()parse_nick_template()NickHandler
- evennia.typeclasses.managers
TypedObjectManagerTypedObjectManager.get_attribute()TypedObjectManager.get_nick()TypedObjectManager.get_by_attribute()TypedObjectManager.get_by_nick()TypedObjectManager.get_tag()TypedObjectManager.get_permission()TypedObjectManager.get_alias()TypedObjectManager.get_by_tag()TypedObjectManager.get_by_permission()TypedObjectManager.get_by_alias()TypedObjectManager.create_tag()TypedObjectManager.dbref()TypedObjectManager.get_id()TypedObjectManager.dbref_search()TypedObjectManager.search_dbref()TypedObjectManager.get_dbref_range()TypedObjectManager.get_typeclass_totals()TypedObjectManager.object_totals()TypedObjectManager.typeclass_search()
AttributeAttribute.DoesNotExistAttribute.MultipleObjectsReturnedAttribute.accountdb_setAttribute.attrtypeAttribute.categoryAttribute.channeldb_setAttribute.date_createdAttribute.db_attrtypeAttribute.db_categoryAttribute.db_date_createdAttribute.db_keyAttribute.db_lock_storageAttribute.db_modelAttribute.db_strvalueAttribute.db_valueAttribute.get_next_by_db_date_created()Attribute.get_previous_by_db_date_created()Attribute.idAttribute.keyAttribute.lock_storageAttribute.modelAttribute.objectdb_setAttribute.pathAttribute.scriptdb_setAttribute.strvalueAttribute.typenameAttribute.value
CastCountExpressionWrapperFFloatFieldQTagTypeclassManagerTypeclassManager.smart_search()TypeclassManager.get()TypeclassManager.filter()TypeclassManager.all()TypeclassManager.first()TypeclassManager.last()TypeclassManager.count()TypeclassManager.annotate()TypeclassManager.values()TypeclassManager.values_list()TypeclassManager.get_family()TypeclassManager.filter_family()TypeclassManager.all_family()
class_from_module()make_iter()variable_from_module()
- evennia.typeclasses.models
TypedObjectTypedObject.db_keyTypedObject.db_typeclass_pathTypedObject.db_date_createdTypedObject.db_lock_storageTypedObject.db_attributesTypedObject.db_tagsTypedObject.objectsTypedObject.set_class_from_typeclass()TypedObject.__init__()TypedObject.init_evennia_properties()TypedObject.attributesTypedObject.locksTypedObject.tagsTypedObject.aliasesTypedObject.permissionsTypedObject.nattributesTypedObject.MetaTypedObject.nameTypedObject.keyTypedObject.date_createdTypedObject.dbidTypedObject.dbrefTypedObject.at_idmapper_flush()TypedObject.at_init()TypedObject.search()TypedObject.is_typeclass()TypedObject.swap_typeclass()TypedObject.access()TypedObject.check_permstring()TypedObject.delete()TypedObject.dbTypedObject.ndbTypedObject.get_display_name()TypedObject.get_extra_info()TypedObject.at_rename()TypedObject.web_get_admin_url()TypedObject.web_get_create_url()TypedObject.get_next_by_db_date_created()TypedObject.get_previous_by_db_date_created()TypedObject.lock_storageTypedObject.pathTypedObject.typeclass_pathTypedObject.typenameTypedObject.web_get_detail_url()TypedObject.web_get_puppet_url()TypedObject.web_get_update_url()TypedObject.web_get_delete_url()TypedObject.get_absolute_url()
AliasHandlerAttributeAttribute.DoesNotExistAttribute.MultipleObjectsReturnedAttribute.accountdb_setAttribute.attrtypeAttribute.categoryAttribute.channeldb_setAttribute.date_createdAttribute.db_attrtypeAttribute.db_categoryAttribute.db_date_createdAttribute.db_keyAttribute.db_lock_storageAttribute.db_modelAttribute.db_strvalueAttribute.db_valueAttribute.get_next_by_db_date_created()Attribute.get_previous_by_db_date_created()Attribute.idAttribute.keyAttribute.lock_storageAttribute.modelAttribute.objectdb_setAttribute.pathAttribute.scriptdb_setAttribute.strvalueAttribute.typenameAttribute.value
AttributeHandlerAttributePropertyContentTypeContentType.DoesNotExistContentType.MultipleObjectsReturnedContentType.app_labelContentType.app_labeled_nameContentType.get_all_objects_for_this_type()ContentType.get_object_for_this_type()ContentType.idContentType.logentry_setContentType.modelContentType.model_class()ContentType.nameContentType.natural_key()ContentType.objectsContentType.permission_set
DbHolderInMemoryAttributeBackendInMemoryAttributeBackend.__init__()InMemoryAttributeBackend.do_batch_finish()InMemoryAttributeBackend.do_batch_update_attribute()InMemoryAttributeBackend.do_create_attribute()InMemoryAttributeBackend.do_delete_attribute()InMemoryAttributeBackend.do_update_attribute()InMemoryAttributeBackend.query_all()InMemoryAttributeBackend.query_category()InMemoryAttributeBackend.query_key()
LockHandlerLockHandler.__init__()LockHandler.add()LockHandler.all()LockHandler.append()LockHandler.cache_lock_bypass()LockHandler.check()LockHandler.check_lockstring()LockHandler.clear()LockHandler.delete()LockHandler.get()LockHandler.remove()LockHandler.replace()LockHandler.reset()LockHandler.validate()
ModelAttributeBackendModelAttributeBackend.__init__()ModelAttributeBackend.do_batch_finish()ModelAttributeBackend.do_batch_update_attribute()ModelAttributeBackend.do_create_attribute()ModelAttributeBackend.do_delete_attribute()ModelAttributeBackend.do_update_attribute()ModelAttributeBackend.query_all()ModelAttributeBackend.query_category()ModelAttributeBackend.query_key()
ModelBaseObjectDoesNotExistPermissionHandlerSharedMemoryModelSharedMemoryModel.MetaSharedMemoryModel.at_idmapper_flush()SharedMemoryModel.cache_instance()SharedMemoryModel.delete()SharedMemoryModel.flush_cached_instance()SharedMemoryModel.flush_from_cache()SharedMemoryModel.flush_instance_cache()SharedMemoryModel.get_all_cached_instances()SharedMemoryModel.get_cached_instance()SharedMemoryModel.objectsSharedMemoryModel.pathSharedMemoryModel.save()SharedMemoryModel.typename
SharedMemoryModelBaseTagTagCategoryPropertyTagHandlerTagPropertyTypeclassBasecall_at_first_save()class_from_module()inherits_from()is_iter()lazy_propertylog_trace()remove_attributes_on_delete()reverse()slugify()smart_str()
- evennia.typeclasses.tags