Skip to content

glazing.utils

Shared utilities and helpers.

Overview

The utils module provides shared functionality used across the package.

Modules

utils

Shared utilities and helper functions.

This module provides common utilities used across the package including XML parsing, validation, caching, and data conversion helpers.

FUNCTION DESCRIPTION
parse_xml

Parse XML with namespace handling.

validate_schema

Validate data against XSD or DTD schemas.

create_cache

Create an LRU cache for query results.

CLASS DESCRIPTION
LazyLoader

Lazy loading for large datasets.

DataCache

Caching layer for frequently accessed data.

Examples:

>>> from frames.utils import LazyLoader
>>> loader = LazyLoader("data/large_dataset.json")
>>> item = loader.get_item(123)  # Loads on demand