Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore TupleLoad Str Str Str Str Str Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num orelse Assign SubscriptStore NameLoad Index BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Return Dict AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list
N/A N/A The Model class is meant to be the base class for user Models. It represents
a table in the database that should be modeled as a resource. decimal Decimal flask current_app flask.ext.admin.contrib.sqla ModelView sandman app db Model N/A object N/A N/A A mixin class containing the majority of the RESTful API functionality.

    :class:`sandman.model.Model` is the base class of `:class:`sandman.Model`,
    from which user models are derived.
     N/A __endpoint__ None N/A override :attr:`__endpoint__` if you wish to configure the
    :class:`sandman.model.Model`'s endpoint.

    Default: __tablename__ in lowercase and pluralized
     N/A __tablename__ None N/A The name of the database table this class should be mapped to

    Default: None
     N/A __top_level_json_name__ None N/A The top level json text to output for this class

    Default: 'resources'
     N/A __methods__ N/A GET POST PATCH DELETE PUT N/A override :attr:`__methods__` if you wish to change the HTTP methods
    this :class:`sandman.model.Model` supports.

    Default: ``('GET', 'POST', 'PATCH', 'DELETE', 'PUT')``
     N/A __table__ None N/A Will be populated by SQLAlchemy with the table's meta-information. N/A __from_class__ None N/A Is this class being generated from an existing declarative SQLAlchemy
    class? endpoint N/A N/A cls N/A N/A N/A Return the :class:`sandman.model.Model`'s endpoint.

        :rtype: string

         N/A endpoint N/A N/A N/A cls __endpoint__ None N/A N/A N/A cls __endpoint__ N/A N/A N/A N/A cls __from_class__ None N/A N/A endpoint N/A N/A N/A N/A cls __from_class__ __name__ lower N/A N/A endpoint N/A N/A N/A cls __tablename__ lower N/A N/A N/A N/A endpoint endswith s N/A N/A endpoint s N/A endpoint N/A classmethod resource_uri N/A N/A self N/A N/A N/A Return the URI at which the resource can be found.

        :rtype: string

         N/A primary_key_value N/A getattr self N/A N/A self primary_key None N/A N/A N/A /{}/{} format N/A N/A self endpoint primary_key_value N/A primary_key N/A N/A cls N/A N/A N/A Return the name of the table's primary key

        :rtype: string

         N/A N/A cls __from_class__ N/A N/A cls N/A cls __from_class__ N/A N/A N/A N/A N/A N/A N/A N/A cls __table__ primary_key columns values N/A 0 name N/A classmethod links N/A N/A self N/A N/A N/A Return a list of links for endpoints related to the resource.

        :rtype: list

         N/A links N/A N/A foreign_key N/A N/A self __table__ foreign_keys N/A N/A column N/A N/A foreign_key column name N/A column_value N/A getattr self column None N/A column_value N/A N/A table N/A N/A N/A foreign_key column table name N/A N/A N/A app app_context N/A N/A endpoint N/A N/A current_app class_references N/A table N/A N/A N/A links append N/A rel uri related N/A N/A /{}/{} format N/A endpoint __name__ column_value N/A N/A N/A links append N/A rel uri self N/A N/A self resource_uri N/A links N/A as_dict N/A N/A self depth N/A 0 N/A N/A Return a dictionary containing only the attributes which map to
        an instance's database columns.

        :param int depth: Maximum depth to recurse subobjects
        :rtype: dict

         N/A result_dict N/A N/A column N/A N/A N/A N/A self __table__ columns keys N/A N/A N/A result_dict N/A column N/A getattr self column None N/A N/A isinstance N/A result_dict N/A column Decimal N/A N/A N/A result_dict N/A column N/A str N/A result_dict N/A column N/A N/A result_dict N/A links N/A N/A self links N/A foreign_key N/A N/A self __table__ foreign_keys N/A N/A column_name N/A N/A foreign_key column name N/A column_value N/A getattr self column_name None N/A column_value N/A N/A table N/A N/A N/A foreign_key column table name N/A N/A N/A app app_context N/A N/A endpoint N/A N/A current_app class_references N/A table N/A session N/A N/A db session N/A resource N/A N/A N/A N/A session query endpoint get column_value N/A N/A depth 0 N/A N/A N/A N/A result_dict update N/A rel N/A N/A N/A endpoint __name__ lower N/A endpoint __name__ N/A N/A resource as_dict N/A depth 1 N/A N/A N/A result_dict N/A N/A N/A N/A N/A endpoint __name__ lower _url N/A N/A /{}/{} format N/A endpoint __name__ column_value N/A N/A result_dict N/A self N/A N/A self resource_uri N/A result_dict N/A from_dict N/A N/A self dictionary N/A N/A N/A Set a set of attributes which correspond to the
        :class:`sandman.model.Model`'s columns.

        :param dict dictionary: A dictionary of attributes to set on the
            instance whose keys are the column names of
            the :class:`sandman.model.Model`'s underlying database table.

         N/A column N/A N/A N/A N/A self __table__ columns keys N/A N/A value N/A N/A dictionary get column None N/A value N/A N/A N/A setattr self column value N/A replace N/A N/A self dictionary N/A N/A N/A Set all attributes which correspond to the
        :class:`sandman.model.Model`'s columns to the values in *dictionary*,
        inserting None if an attribute's value is not specified.

        :param dict dictionary: A dictionary of attributes to set on the
            instance whose keys are the column names of the
            :class:`sandman.model.Model`'s underlying database table.

         N/A column N/A N/A N/A N/A self __table__ columns keys N/A N/A N/A setattr self column None N/A N/A N/A self from_dict dictionary N/A meta N/A N/A cls N/A N/A N/A Return a dictionary containing meta-information about the given
        resource. N/A N/A N/A getattr cls __from_class__ None None N/A N/A cls N/A cls __from_class__ N/A attribute_info N/A N/A N/A name value N/A N/A N/A N/A cls __table__ columns items N/A N/A N/A attribute_info N/A name N/A N/A N/A str N/A value type lower N/A N/A N/A cls __name__ attribute_info N/A classmethod __str__ N/A N/A self N/A N/A N/A N/A str N/A getattr self N/A N/A self primary_key N/A N/A AdminModelViewWithPK N/A ModelView N/A N/A Mixin admin view class that displays primary keys on the admin form N/A column_display_pk True N/A