René's URL Explorer Experiment


Title: Python Rules | SQLBuild

Open Graph Title: Python Rules

Description: Check the project's Python for annotations, imports, function shape and the layout of python/.

Open Graph Description: Check the project's Python for annotations, imports, function shape and the layout of python/.

Opengraph URL: https://sqlbuild.com/docs/concepts/rules/python-rules/

Generator: Starlight v0.42.4

direct link

Domain: sqlbuild.com

IPv4 address: 185.199.108.153

og:typearticle
og:localeen
og:site_nameSQLBuild
twitter:cardsummary_large_image
og:imagehttps://sqlbuild.com/assets/og-sqlbuild-docs.png
og:image:width1200
og:image:height630
twitter:imagehttps://sqlbuild.com/assets/og-sqlbuild-docs.png

Links:

Skip to contenthttps://sqlbuild.com/docs/concepts/rules/python-rules#_top
https://sqlbuild.com/
by SQLStackhttps://sqlstack.io
Docshttps://sqlbuild.com/docs/
GitHubhttps://github.com/sqlstack-io/sqlbuild
Discordhttps://discord.com/invite/gATNYuBK6
Introductionhttps://sqlbuild.com/docs/
Quickstarthttps://sqlbuild.com/docs/quickstart/
Set up a projecthttps://sqlbuild.com/docs/project-setup/
Using SQLBuild with dbthttps://sqlbuild.com/docs/concepts/dbt-compatibility/overview/
Selectionhttps://sqlbuild.com/docs/concepts/dbt-compatibility/selection/
Adding SQLBuild modelshttps://sqlbuild.com/docs/concepts/dbt-compatibility/adding-sqlbuild-models/
Feature Comparisonhttps://sqlbuild.com/docs/feature-comparison/
Roadmaphttps://sqlbuild.com/docs/roadmap/
Benchmarkshttps://sqlbuild.com/docs/benchmarks/
Modelshttps://sqlbuild.com/docs/concepts/models/
Materializationshttps://sqlbuild.com/docs/concepts/models/materializations/
Sourceshttps://sqlbuild.com/docs/concepts/sources/
Seedshttps://sqlbuild.com/docs/concepts/seeds/
Incremental Modelshttps://sqlbuild.com/docs/concepts/incremental/
Snapshots (SCD Type 2)https://sqlbuild.com/docs/concepts/snapshots/
Dynamic modelshttps://sqlbuild.com/docs/concepts/models/dynamic/
Functionshttps://sqlbuild.com/docs/concepts/functions/
Overviewhttps://sqlbuild.com/docs/concepts/macros/
SQL Macroshttps://sqlbuild.com/docs/concepts/macros/sql-macros/
SQL macro referencehttps://sqlbuild.com/docs/concepts/macros/sql-macro-reference/
Python Macroshttps://sqlbuild.com/docs/concepts/macros/python-macros/
Python Macro Composition and Contexthttps://sqlbuild.com/docs/concepts/macros/composition-and-context/
Selectorshttps://sqlbuild.com/docs/concepts/selectors/
Unit testshttps://sqlbuild.com/docs/concepts/testing/
Scenarioshttps://sqlbuild.com/docs/concepts/scenarios/
Auditshttps://sqlbuild.com/docs/concepts/audits/
Data Diffshttps://sqlbuild.com/docs/concepts/diff/
What sqb compile checkshttps://sqlbuild.com/docs/concepts/semantic-compilation/
Contractshttps://sqlbuild.com/docs/concepts/models/contracts/
Type Enforcementhttps://sqlbuild.com/docs/concepts/models/type-enforcement/
Reusable column schemashttps://sqlbuild.com/docs/concepts/models/schemas/
Overviewhttps://sqlbuild.com/docs/concepts/rules/
Configuration and selectionhttps://sqlbuild.com/docs/concepts/rules/configuration-and-selection/
Findings and exceptionshttps://sqlbuild.com/docs/concepts/rules/findings-and-exceptions/
Python Ruleshttps://sqlbuild.com/docs/concepts/rules/python-rules/
Orchestration Ruleshttps://sqlbuild.com/docs/concepts/rules/orchestration-rules/
Performance Ruleshttps://sqlbuild.com/docs/concepts/rules/performance-rules/
Execution and cachinghttps://sqlbuild.com/docs/concepts/rules/execution-and-caching/
Planninghttps://sqlbuild.com/docs/concepts/planning/
Replay decisionshttps://sqlbuild.com/docs/concepts/planning/replay-decisions/
Source freshnesshttps://sqlbuild.com/docs/concepts/planning/source-freshness/
Selection and stalenesshttps://sqlbuild.com/docs/concepts/planning/selection-and-staleness/
Review a branchhttps://sqlbuild.com/docs/cli/review/
Column Lineagehttps://sqlbuild.com/docs/concepts/column-lineage/
Orchestrationhttps://sqlbuild.com/docs/concepts/orchestration/
Concurrencyhttps://sqlbuild.com/docs/concepts/concurrency/
Refactoringhttps://sqlbuild.com/docs/concepts/refactoring/
Model migrationshttps://sqlbuild.com/docs/concepts/models/migrations/
Column migrationshttps://sqlbuild.com/docs/concepts/models/column-migrations/
Recallhttps://sqlbuild.com/docs/concepts/observability/recall/
Sharing Recall in ClickHousehttps://sqlbuild.com/docs/concepts/observability/recall-clickhouse/
Observabilityhttps://sqlbuild.com/docs/concepts/observability/
Typed Sinkshttps://sqlbuild.com/docs/concepts/observability/sinks/
Overviewhttps://sqlbuild.com/docs/concepts/declaration-scopes/
How Visibility Workshttps://sqlbuild.com/docs/concepts/declaration-scopes/visibility/
Where to Put Declarationshttps://sqlbuild.com/docs/concepts/declaration-scopes/placement/
Scope Explorerhttps://sqlbuild.com/docs/concepts/declaration-scopes/explorer/
Enumshttps://sqlbuild.com/docs/concepts/enums/
Constantshttps://sqlbuild.com/docs/concepts/constants/
Collections and Renderinghttps://sqlbuild.com/docs/concepts/constants/collections-and-rendering/
Enum Model Contractshttps://sqlbuild.com/docs/concepts/enums/model-contracts/
Model-Private Valueshttps://sqlbuild.com/docs/concepts/model-private-values/
Variables and placeholdershttps://sqlbuild.com/docs/concepts/interpolation/
Overviewhttps://sqlbuild.com/docs/concepts/models/hooks/
SQL Hookshttps://sqlbuild.com/docs/concepts/models/hooks/sql/
Python Hookshttps://sqlbuild.com/docs/concepts/models/hooks/python/
Overviewhttps://sqlbuild.com/docs/concepts/rules/custom-rules/overview/
RuleContext and compiler factshttps://sqlbuild.com/docs/concepts/rules/custom-rules/rule-context/
Testing and deterministic Ruleshttps://sqlbuild.com/docs/concepts/rules/custom-rules/testing-and-determinism/
Published-layer Ruleshttps://sqlbuild.com/docs/concepts/rules/published-layer-rules/
Overviewhttps://sqlbuild.com/docs/concepts/python-nodes/overview/
Loadershttps://sqlbuild.com/docs/concepts/python-nodes/loaders/
Assetshttps://sqlbuild.com/docs/concepts/python-nodes/assets/
Checkshttps://sqlbuild.com/docs/concepts/python-nodes/checks/
Factorieshttps://sqlbuild.com/docs/concepts/python-nodes/factories/
Providershttps://sqlbuild.com/docs/concepts/python-nodes/providers/
SQL Referenceshttps://sqlbuild.com/docs/concepts/python-nodes/sql-references/
Custom adaptershttps://sqlbuild.com/docs/concepts/adapters/custom/
Execution historyhttps://sqlbuild.com/docs/concepts/observability/execution-history/
Overviewhttps://sqlbuild.com/docs/concepts/adapters/
Snowflakehttps://sqlbuild.com/docs/concepts/adapters/snowflake/
DuckDBhttps://sqlbuild.com/docs/concepts/adapters/duckdb/
MotherDuckhttps://sqlbuild.com/docs/concepts/adapters/motherduck/
PostgreSQLhttps://sqlbuild.com/docs/concepts/adapters/postgres/
SQLitehttps://sqlbuild.com/docs/concepts/adapters/sqlite/
BigQueryhttps://sqlbuild.com/docs/concepts/adapters/bigquery/
Databrickshttps://sqlbuild.com/docs/concepts/adapters/databricks/
SQL Serverhttps://sqlbuild.com/docs/concepts/adapters/sqlserver/
ClickHousehttps://sqlbuild.com/docs/concepts/adapters/clickhouse/
Overviewhttps://sqlbuild.com/docs/integrations/dagster/
API Referencehttps://sqlbuild.com/docs/integrations/dagster-reference/
Rivershttps://sqlbuild.com/docs/integrations/rivers/
Configuration referencehttps://sqlbuild.com/docs/concepts/project-configuration/
MODEL() fieldshttps://sqlbuild.com/docs/concepts/models/configuration/
Testing referencehttps://sqlbuild.com/docs/concepts/testing-reference/
Naming ruleshttps://sqlbuild.com/docs/concepts/resource-identities/
inithttps://sqlbuild.com/docs/cli/init/
playgroundhttps://sqlbuild.com/docs/cli/playground/
skillshttps://sqlbuild.com/docs/cli/skills/
debughttps://sqlbuild.com/docs/cli/debug/
compilehttps://sqlbuild.com/docs/cli/compile/
formathttps://sqlbuild.com/docs/cli/format/
testhttps://sqlbuild.com/docs/cli/test/
scenariohttps://sqlbuild.com/docs/cli/scenario/
lineagehttps://sqlbuild.com/docs/cli/lineage/
scopehttps://sqlbuild.com/docs/cli/scope/
rename / mvhttps://sqlbuild.com/docs/cli/rename/
ruleshttps://sqlbuild.com/docs/cli/rules/
contracthttps://sqlbuild.com/docs/cli/contract/
planhttps://sqlbuild.com/docs/cli/plan/
buildhttps://sqlbuild.com/docs/cli/build/
loadhttps://sqlbuild.com/docs/cli/load/
seedhttps://sqlbuild.com/docs/cli/seed/
audithttps://sqlbuild.com/docs/cli/audit/
checkhttps://sqlbuild.com/docs/cli/check/
freshnesshttps://sqlbuild.com/docs/cli/freshness/
diffhttps://sqlbuild.com/docs/cli/diff/
reviewhttps://sqlbuild.com/docs/cli/review/
clonehttps://sqlbuild.com/docs/cli/clone/
janitorhttps://sqlbuild.com/docs/cli/janitor/
recallhttps://sqlbuild.com/docs/cli/recall/
queryhttps://sqlbuild.com/docs/cli/query/
cleanhttps://sqlbuild.com/docs/cli/clean/
daghttps://sqlbuild.com/docs/cli/dag/
dbthttps://sqlbuild.com/docs/cli/dbt/
serverhttps://sqlbuild.com/docs/cli/server/
locationhttps://sqlbuild.com/docs/cli/location/
devhttps://sqlbuild.com/docs/cli/dev/
login / logouthttps://sqlbuild.com/docs/cli/login/
sensor tryhttps://sqlbuild.com/docs/cli/sensor/
GitHubhttps://github.com/sqlstack-io/sqlbuild
Discordhttps://discord.com/invite/gATNYuBK6
Section titled “Selecting the Python Rules”https://sqlbuild.com/docs/concepts/rules/python-rules#selecting-the-python-rules
Section titled “Which files are checked”https://sqlbuild.com/docs/concepts/rules/python-rules#which-files-are-checked
Project Pythonhttps://sqlbuild.com/docs/concepts/project-configuration#project-python
Python testshttps://sqlbuild.com/docs/concepts/rules/python-rules#testing-python
referencehttps://sqlbuild.com/docs/concepts/rules/python-rules#rule-reference
Section titled “Laying out python/”https://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-python
Section titled “Writing nodes as units”https://sqlbuild.com/docs/concepts/rules/python-rules#writing-nodes-as-units
Section titled “Laying out providers”https://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-providers
Section titled “Laying out sensors and calendars”https://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-sensors-and-calendars
Section titled “Testing Python”https://sqlbuild.com/docs/concepts/rules/python-rules#testing-python
Python testshttps://sqlbuild.com/docs/cli/test#python-tests
Section titled “Keeping compile-time Python pure”https://sqlbuild.com/docs/concepts/rules/python-rules#keeping-compile-time-python-pure
Section titled “Main modules and entry modules”https://sqlbuild.com/docs/concepts/rules/python-rules#main-modules-and-entry-modules
Section titled “Unreachable definitions”https://sqlbuild.com/docs/concepts/rules/python-rules#unreachable-definitions
Section titled “Rule options”https://sqlbuild.com/docs/concepts/rules/python-rules#rule-options
compile-time purityhttps://sqlbuild.com/docs/concepts/rules/python-rules#keeping-compile-time-python-pure
Section titled “Rule reference”https://sqlbuild.com/docs/concepts/rules/python-rules#rule-reference
Section titled “Layout of python/”https://sqlbuild.com/docs/concepts/rules/python-rules#layout-of-python
Section titled “Node units”https://sqlbuild.com/docs/concepts/rules/python-rules#node-units
Section titled “Providers”https://sqlbuild.com/docs/concepts/rules/python-rules#providers
Section titled “Sensors and calendars”https://sqlbuild.com/docs/concepts/rules/python-rules#sensors-and-calendars
Section titled “Compile-time purity”https://sqlbuild.com/docs/concepts/rules/python-rules#compile-time-purity
Section titled “Python tests”https://sqlbuild.com/docs/concepts/rules/python-rules#python-tests
Section titled “Type annotations”https://sqlbuild.com/docs/concepts/rules/python-rules#type-annotations
Section titled “Hygiene”https://sqlbuild.com/docs/concepts/rules/python-rules#hygiene
Section titled “Imports and reachability”https://sqlbuild.com/docs/concepts/rules/python-rules#imports-and-reachability
Section titled “Naming contracts”https://sqlbuild.com/docs/concepts/rules/python-rules#naming-contracts
Section titled “Function shape”https://sqlbuild.com/docs/concepts/rules/python-rules#function-shape
Section titled “Module roles and package layout”https://sqlbuild.com/docs/concepts/rules/python-rules#module-roles-and-package-layout
Section titled “Details”https://sqlbuild.com/docs/concepts/rules/python-rules#details
Findings and exceptionshttps://sqlbuild.com/docs/concepts/rules/findings-and-exceptions
Execution and cachinghttps://sqlbuild.com/docs/concepts/rules/execution-and-caching
Previous← Findings and exceptionshttps://sqlbuild.com/docs/concepts/rules/findings-and-exceptions/
NextOrchestration Rules →https://sqlbuild.com/docs/concepts/rules/orchestration-rules/
Part of SQLStackhttps://sqlstack.io
SQLBuildhttps://sqlbuild.com/
SQLCleanhttps://sqlclean.io
SQLTidehttps://sqltide.io/
Fensuhttps://fensu.io/
Overviewhttps://sqlbuild.com/docs/concepts/rules/python-rules#_top
Selecting the Python Ruleshttps://sqlbuild.com/docs/concepts/rules/python-rules#selecting-the-python-rules
Which files are checkedhttps://sqlbuild.com/docs/concepts/rules/python-rules#which-files-are-checked
Laying out python/https://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-python
Writing nodes as unitshttps://sqlbuild.com/docs/concepts/rules/python-rules#writing-nodes-as-units
Laying out providershttps://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-providers
Laying out sensors and calendarshttps://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-sensors-and-calendars
Testing Pythonhttps://sqlbuild.com/docs/concepts/rules/python-rules#testing-python
Keeping compile-time Python purehttps://sqlbuild.com/docs/concepts/rules/python-rules#keeping-compile-time-python-pure
Main modules and entry moduleshttps://sqlbuild.com/docs/concepts/rules/python-rules#main-modules-and-entry-modules
Unreachable definitionshttps://sqlbuild.com/docs/concepts/rules/python-rules#unreachable-definitions
Rule optionshttps://sqlbuild.com/docs/concepts/rules/python-rules#rule-options
Rule referencehttps://sqlbuild.com/docs/concepts/rules/python-rules#rule-reference
Layout of python/https://sqlbuild.com/docs/concepts/rules/python-rules#layout-of-python
Node unitshttps://sqlbuild.com/docs/concepts/rules/python-rules#node-units
Providershttps://sqlbuild.com/docs/concepts/rules/python-rules#providers
Sensors and calendarshttps://sqlbuild.com/docs/concepts/rules/python-rules#sensors-and-calendars
Compile-time purityhttps://sqlbuild.com/docs/concepts/rules/python-rules#compile-time-purity
Python testshttps://sqlbuild.com/docs/concepts/rules/python-rules#python-tests
Type annotationshttps://sqlbuild.com/docs/concepts/rules/python-rules#type-annotations
Hygienehttps://sqlbuild.com/docs/concepts/rules/python-rules#hygiene
Imports and reachabilityhttps://sqlbuild.com/docs/concepts/rules/python-rules#imports-and-reachability
Naming contractshttps://sqlbuild.com/docs/concepts/rules/python-rules#naming-contracts
Function shapehttps://sqlbuild.com/docs/concepts/rules/python-rules#function-shape
Module roles and package layouthttps://sqlbuild.com/docs/concepts/rules/python-rules#module-roles-and-package-layout
Detailshttps://sqlbuild.com/docs/concepts/rules/python-rules#details
Overviewhttps://sqlbuild.com/docs/concepts/rules/python-rules#_top
Selecting the Python Ruleshttps://sqlbuild.com/docs/concepts/rules/python-rules#selecting-the-python-rules
Which files are checkedhttps://sqlbuild.com/docs/concepts/rules/python-rules#which-files-are-checked
Laying out python/https://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-python
Writing nodes as unitshttps://sqlbuild.com/docs/concepts/rules/python-rules#writing-nodes-as-units
Laying out providershttps://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-providers
Laying out sensors and calendarshttps://sqlbuild.com/docs/concepts/rules/python-rules#laying-out-sensors-and-calendars
Testing Pythonhttps://sqlbuild.com/docs/concepts/rules/python-rules#testing-python
Keeping compile-time Python purehttps://sqlbuild.com/docs/concepts/rules/python-rules#keeping-compile-time-python-pure
Main modules and entry moduleshttps://sqlbuild.com/docs/concepts/rules/python-rules#main-modules-and-entry-modules
Unreachable definitionshttps://sqlbuild.com/docs/concepts/rules/python-rules#unreachable-definitions
Rule optionshttps://sqlbuild.com/docs/concepts/rules/python-rules#rule-options
Rule referencehttps://sqlbuild.com/docs/concepts/rules/python-rules#rule-reference
Layout of python/https://sqlbuild.com/docs/concepts/rules/python-rules#layout-of-python
Node unitshttps://sqlbuild.com/docs/concepts/rules/python-rules#node-units
Providershttps://sqlbuild.com/docs/concepts/rules/python-rules#providers
Sensors and calendarshttps://sqlbuild.com/docs/concepts/rules/python-rules#sensors-and-calendars
Compile-time purityhttps://sqlbuild.com/docs/concepts/rules/python-rules#compile-time-purity
Python testshttps://sqlbuild.com/docs/concepts/rules/python-rules#python-tests
Type annotationshttps://sqlbuild.com/docs/concepts/rules/python-rules#type-annotations
Hygienehttps://sqlbuild.com/docs/concepts/rules/python-rules#hygiene
Imports and reachabilityhttps://sqlbuild.com/docs/concepts/rules/python-rules#imports-and-reachability
Naming contractshttps://sqlbuild.com/docs/concepts/rules/python-rules#naming-contracts
Function shapehttps://sqlbuild.com/docs/concepts/rules/python-rules#function-shape
Module roles and package layouthttps://sqlbuild.com/docs/concepts/rules/python-rules#module-roles-and-package-layout
Detailshttps://sqlbuild.com/docs/concepts/rules/python-rules#details

Response headers:
ServerGitHub.com
Content-Typetext/html; charset=utf-8
Via1.1 varnish
Cache-Controlmax-age=600
Last-ModifiedSun, 22 Nov 2026 09:33:57 GMT

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.