anymodel.types.utils

Utility functions for type operations.

This module provides utility functions for working with entities and their metadata.

Functions

anymodel.types.utils.getmeta(mixed, key, default=None)[source]

Get metadata value from an object.

Parameters:
  • mixed – Object to get metadata from

  • key – Metadata key to retrieve

  • default – Default value if key not found

Returns:

The metadata value or default

anymodel.types.utils.mapper(mixed)[source]

Get the mapper associated with an object.