Skip to content

Commit cde27f0

Browse files
committed
[Python] Clarify approach for namespacing
1 parent b2c1182 commit cde27f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

experimental/python/codegen/codegen/packages.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import re
22
from typing import Optional
33

4-
# All supported resource types and their namespace
4+
# All supported resource types and their namespace.
5+
#
6+
# We put each resource type into own package and don't do cross-package imports,
7+
# each package is self-contained. If two resources share the same datatype, it's
8+
# duplicated to allow independent evolution.
9+
#
10+
# The convention is that each resource type uses a plural name as package name,
11+
# e.g., "resources.Job" -> "jobs", "resources.Pipeline" -> "pipelines".
512
RESOURCE_NAMESPACE = {
613
"resources.Job": "jobs",
714
"resources.Pipeline": "pipelines",

0 commit comments

Comments
 (0)