Skip to content
Discussion options

You must be logged in to vote

the sphinx documentation is a work in progress and it is not always easy to get it to be consistent about module naming. Additionally, tools like Pylance tend to pop things up from their "real" module, like "sqlalchemy.schema.Column" above.

for SQLAlchemy 2.0, the goal is that all objects in the public API will be from "sqlalchemy.", "sqlalchemy.orm." "sqlalchemy.ext" the sub-modules of "sqlalchemy.ext" one level deep, "sqlalchemy.dialects" and the submodules of "sqlalchemy.dialects" one level deep. This is mostly how it is in 1.4 however there is a lot of historical use of "sqlalchemy.sql.expression", etc.

Overall the best guide to where imports should come from should be based on the ex…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pinkfrog9
Comment options

@CaselIT
Comment options

@CaselIT
Comment options

Answer selected by pinkfrog9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants