ClassManager (orm/instrumentation.py)

sqlalchemy · lib/sqlalchemy/orm/instrumentation.py · python · MIT
database

Core ORM instrumentation for SQLAlchemy, enabling class-level state tracking.

# Source: https://github.com/sqlalchemy/sqlalchemy | License: MIT | Copyright 2005-2026 SQLAlchemy authors and contributors <see AUTHORS file>
# Provided via justclaw.it.com; keep this notice with the code.
# orm/instrumentation.py
# Copyright (C) 2005-2026 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
# mypy: allow-untyped-defs, allow-untyped-calls

"""Defines SQLAlchemy's system of class instrumentation.

This module is usually not directly visible to user applications, but
defines a large part of the ORM's interactivity.

instrumentation.py deals with registration of end-user classes
for state tracking.   It interacts closely with state.py
and

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key