sqlalchemyseed.attribute ======================== .. py:module:: sqlalchemyseed.attribute .. autoapi-nested-parse:: attribute module containing helper functions for instrumented attribute. Module Contents --------------- .. py:function:: attr_is_column(instrumented_attr: sqlalchemy.orm.attributes.InstrumentedAttribute) Check if instrumented attribute property is a ColumnProperty .. py:function:: attr_is_relationship(instrumented_attr: sqlalchemy.orm.attributes.InstrumentedAttribute) Check if instrumented attribute property is a RelationshipProperty .. py:function:: foreign_key_column(instrumented_attr: sqlalchemy.orm.attributes.InstrumentedAttribute) Returns the table name of the first foreignkey. .. py:function:: instrumented_attribute(class_or_instance, key: str) Returns instrumented attribute from the class or instance. .. py:function:: referenced_class(instrumented_attr: sqlalchemy.orm.attributes.InstrumentedAttribute) Returns class that the attribute is referenced to. .. py:function:: set_instance_attribute(instance, key, value) Set attribute value of instance