hydra-python 0.17.0__tar.gz → 0.17.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {hydra_python-0.17.0 → hydra_python-0.17.2}/.gitignore +27 -24
  2. {hydra_python-0.17.0 → hydra_python-0.17.2}/PKG-INFO +10 -10
  3. {hydra_python-0.17.0 → hydra_python-0.17.2}/README.md +8 -8
  4. hydra_python-0.17.2/build/main/digest.json +55 -0
  5. {hydra_python-0.17.0 → hydra_python-0.17.2}/pyproject.toml +2 -2
  6. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/environment.py +12 -0
  7. hydra_python-0.17.2/src/main/python/hydra/dsl/python/names.py +157 -0
  8. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/dsl/python/syntax.py +591 -0
  9. hydra_python-0.17.2/src/main/python/hydra/dsl/python/utils.py +507 -0
  10. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/coder.py +2 -2
  11. hydra_python-0.17.2/src/main/python/hydra/python/pyproject.py +33 -0
  12. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/serde.py +2 -2
  13. {hydra_python-0.17.0 → hydra_python-0.17.2}/LICENSE +0 -0
  14. {hydra_python-0.17.0 → hydra_python-0.17.2}/NOTICE +0 -0
  15. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/environment.py +0 -0
  16. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/language.py +0 -0
  17. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/names.py +0 -0
  18. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/syntax.py +0 -0
  19. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/testing.py +0 -0
  20. {hydra_python-0.17.0 → hydra_python-0.17.2}/src/main/python/hydra/python/utils.py +0 -0
@@ -21,10 +21,15 @@ dist-newstyle/
21
21
  stack.yaml.lock
22
22
  *.cabal
23
23
 
24
- # Java / Gradle
24
+ # Java / Gradle. Path-anchored (not a bare "build") so this can never swallow
25
+ # a module-namespace directory literally named "build" (e.g. the
26
+ # hydra.build.* family under dist/json/, #416) -- it only matches the
27
+ # specific Gradle output roots below.
25
28
  .gradle
26
29
  gradle.properties
27
- build
30
+ /packages/hydra-java/build/
31
+ /heads/java/json-driver/build/
32
+ /heads/java/target-driver/build/
28
33
 
29
34
  # IDEs
30
35
  .bsp/
@@ -69,26 +74,21 @@ docs/reviews/
69
74
  docs/work/
70
75
 
71
76
  # Package distributions.
72
- # dist/json/ is the source of truth (tracked). dist/haskell/ is tracked
73
- # through the 0.15 release to support bootstrapping from a fresh clone.
74
- # All other target-language trees are regenerated from dist/json/ and
75
- # not checked in.
76
- #
77
- # Exception within the tracked dist/haskell/ tree (#418): the hand-written
78
- # distribution-package content that sync-haskell.sh OVERLAYS from its canonical
79
- # home under the top-level overlay/haskell/ tree is NOT committed — it would
80
- # duplicate the canonical source, and the whole dist/haskell/ tree leaves Git
81
- # after 0.16.0 anyway. The canonical copies under overlay/haskell/ ARE tracked.
82
- # - hydra umbrella package (entirely copied)
83
- dist/haskell/hydra/
84
- # - hydra-kernel hand-written runtime (copied from dist-packages/hydra-kernel/)
85
- dist/haskell/hydra-kernel/src/main/haskell/Hydra/Settings.hs
86
- dist/haskell/hydra-kernel/src/main/haskell/Hydra/Kernel.hs
87
- dist/haskell/hydra-kernel/src/main/haskell/Hydra/Haskell/Lib/
88
- dist/haskell/hydra-kernel/src/main/haskell/Hydra/Dsl/Literals.hs
89
- dist/haskell/hydra-kernel/src/main/haskell/Hydra/Dsl/Meta/Common.hs
90
- # - hydra-kernel hand-written test bridge (overlaid from overlay/haskell/.../src/test/)
91
- dist/haskell/hydra-kernel/src/test/haskell/Hydra/Test/TestEnv.hs
77
+ # dist/json/ is the source of truth (tracked). All target-language trees,
78
+ # INCLUDING dist/haskell/ as of #376, are regenerated from dist/json/ and not
79
+ # checked in. dist/haskell/ was tracked from the 0.15 release through #376 to
80
+ # support bootstrapping from a fresh clone before the cold-clone seeder
81
+ # (heads/haskell/json-driver/) existed; that seeder now performs the same
82
+ # role by regenerating dist/haskell/ from the committed dist/json/ using only
83
+ # published Hackage coder packages — see bin/sync.sh's cold-start detection
84
+ # and heads/haskell/json-driver/bin/cold-seed-dist-haskell.sh. The former
85
+ # per-file overlay exceptions under dist/haskell/ (hydra umbrella,
86
+ # hydra-kernel hand-written runtime, hydra-pg/hydra-typescript DSL helpers)
87
+ # are subsumed by this blanket ignore; their canonical copies remain tracked
88
+ # under overlay/haskell/. (Hackage channel staging artifacts — the sdists and
89
+ # Haddock docs that prepare-release.sh / publish-hackage.sh assemble into
90
+ # dist/haskell/ — are likewise covered by this blanket ignore. #589.)
91
+ dist/haskell/
92
92
 
93
93
  dist/clojure/
94
94
  dist/common-lisp/
@@ -116,8 +116,11 @@ dist/haskell/*/.test-input-hash.txt
116
116
  # file is a cache miss, never a correctness problem. Tracking digests
117
117
  # previously caused merge conflicts on every cross-branch merge because
118
118
  # the hashes always diverged. See #379. The matching root-level cache
119
- # directory is dist/json/build/ (universe digest).
120
- dist/**/build/
119
+ # directory is dist/json/build/ (universe digest). Depth-anchored
120
+ # (rather than dist/**/build/) so it can never swallow a module-namespace
121
+ # directory literally named "build" (e.g. the hydra.build.* family, #416).
122
+ dist/json/build/
123
+ dist/*/*/build/
121
124
 
122
125
  # Other
123
126
  *.log
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydra-python
3
- Version: 0.17.0
3
+ Version: 0.17.2
4
4
  Summary: Python support for Hydra
5
5
  Project-URL: Homepage, https://github.com/CategoricalData/hydra
6
6
  Project-URL: Repository, https://github.com/CategoricalData/hydra
@@ -9,7 +9,7 @@ License: Apache-2.0
9
9
  License-File: LICENSE
10
10
  License-File: NOTICE
11
11
  Requires-Python: >=3.12
12
- Requires-Dist: hydra-kernel==0.17.0
12
+ Requires-Dist: hydra-kernel==0.17.2
13
13
  Description-Content-Type: text/markdown
14
14
 
15
15
  # Hydra-Python
@@ -58,7 +58,7 @@ For comprehensive documentation about Hydra's architecture and usage, see:
58
58
  - **[Code Organization](https://github.com/CategoricalData/hydra/wiki/Code-organization)** -
59
59
  The `packages/`, `heads/`, `dist/` layout
60
60
  - **[Testing](https://github.com/CategoricalData/hydra/wiki/Testing)** -
61
- Common test suite documentation
61
+ Hydra-kernel test suite documentation
62
62
  - **[Developer Recipes](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/index.md)** -
63
63
  Step-by-step guides
64
64
  - **[Syncing Hydra-Python](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/syncing-python.md)** -
@@ -66,15 +66,15 @@ For comprehensive documentation about Hydra's architecture and usage, see:
66
66
 
67
67
  ## Testing
68
68
 
69
- Hydra-Python has two types of tests: the **common test suite** (shared across all Hydra implementations)
69
+ Hydra-Python has two types of tests: the **hydra-kernel test suite** (shared across all Hydra implementations)
70
70
  and **Python-specific tests**.
71
71
  See the [Testing wiki page](https://github.com/CategoricalData/hydra/wiki/Testing)
72
72
  for comprehensive documentation.
73
73
 
74
- ### Common test suite
74
+ ### Hydra-kernel test suite
75
75
 
76
- The common test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
77
- **Passing all common test suite cases is the criterion for a true Hydra implementation.**
76
+ The hydra-kernel test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
77
+ **Passing all hydra-kernel test suite cases is the criterion for a true Hydra implementation.**
78
78
 
79
79
  To run all tests (from `heads/python/`):
80
80
 
@@ -82,7 +82,7 @@ To run all tests (from `heads/python/`):
82
82
  cd heads/python && pytest
83
83
  ```
84
84
 
85
- To run only the common test suite:
85
+ To run only the hydra-kernel test suite:
86
86
 
87
87
  ```bash
88
88
  cd heads/python && pytest src/test/python/test_suite_runner.py
@@ -100,7 +100,7 @@ The test suite is generated from Hydra DSL sources and includes:
100
100
  ### Python-specific tests
101
101
 
102
102
  Python-specific tests validate implementation details and Python-specific functionality.
103
- These are located in `heads/python/src/test/python/` alongside the common test suite runner.
103
+ These are located in `heads/python/src/test/python/` alongside the hydra-kernel test suite runner.
104
104
 
105
105
  To run a specific test file:
106
106
 
@@ -133,7 +133,7 @@ Hydra's Python code is split across three locations
133
133
 
134
134
  - **Python kernel overlay** ([`overlay/python/hydra-kernel/src/main/python/`](https://github.com/CategoricalData/hydra/tree/main/overlay/python/hydra-kernel/src/main/python))
135
135
  — hand-written Python kernel runtime, overlaid onto `dist/python/hydra-kernel/`
136
- by `bin/copy-kernel-runtime.sh` so the published `hydra-kernel` wheel is self-contained
136
+ by `heads/python/bin/copy-kernel-runtime.sh` so the published `hydra-kernel` wheel is self-contained
137
137
  - `hydra/lib/` — primitive function implementations
138
138
  - `hydra/dsl/` — DSL utilities (FrozenDict, Maybe, ...)
139
139
  - `hydra/python/util/` — `ConsList`, `Lazy`, `PersistentMap`, `PersistentSet`
@@ -44,7 +44,7 @@ For comprehensive documentation about Hydra's architecture and usage, see:
44
44
  - **[Code Organization](https://github.com/CategoricalData/hydra/wiki/Code-organization)** -
45
45
  The `packages/`, `heads/`, `dist/` layout
46
46
  - **[Testing](https://github.com/CategoricalData/hydra/wiki/Testing)** -
47
- Common test suite documentation
47
+ Hydra-kernel test suite documentation
48
48
  - **[Developer Recipes](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/index.md)** -
49
49
  Step-by-step guides
50
50
  - **[Syncing Hydra-Python](https://github.com/CategoricalData/hydra/blob/main/docs/recipes/syncing-python.md)** -
@@ -52,15 +52,15 @@ For comprehensive documentation about Hydra's architecture and usage, see:
52
52
 
53
53
  ## Testing
54
54
 
55
- Hydra-Python has two types of tests: the **common test suite** (shared across all Hydra implementations)
55
+ Hydra-Python has two types of tests: the **hydra-kernel test suite** (shared across all Hydra implementations)
56
56
  and **Python-specific tests**.
57
57
  See the [Testing wiki page](https://github.com/CategoricalData/hydra/wiki/Testing)
58
58
  for comprehensive documentation.
59
59
 
60
- ### Common test suite
60
+ ### Hydra-kernel test suite
61
61
 
62
- The common test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
63
- **Passing all common test suite cases is the criterion for a true Hydra implementation.**
62
+ The hydra-kernel test suite (`hydra.test.testSuite`) ensures parity across all Hydra implementations.
63
+ **Passing all hydra-kernel test suite cases is the criterion for a true Hydra implementation.**
64
64
 
65
65
  To run all tests (from `heads/python/`):
66
66
 
@@ -68,7 +68,7 @@ To run all tests (from `heads/python/`):
68
68
  cd heads/python && pytest
69
69
  ```
70
70
 
71
- To run only the common test suite:
71
+ To run only the hydra-kernel test suite:
72
72
 
73
73
  ```bash
74
74
  cd heads/python && pytest src/test/python/test_suite_runner.py
@@ -86,7 +86,7 @@ The test suite is generated from Hydra DSL sources and includes:
86
86
  ### Python-specific tests
87
87
 
88
88
  Python-specific tests validate implementation details and Python-specific functionality.
89
- These are located in `heads/python/src/test/python/` alongside the common test suite runner.
89
+ These are located in `heads/python/src/test/python/` alongside the hydra-kernel test suite runner.
90
90
 
91
91
  To run a specific test file:
92
92
 
@@ -119,7 +119,7 @@ Hydra's Python code is split across three locations
119
119
 
120
120
  - **Python kernel overlay** ([`overlay/python/hydra-kernel/src/main/python/`](https://github.com/CategoricalData/hydra/tree/main/overlay/python/hydra-kernel/src/main/python))
121
121
  — hand-written Python kernel runtime, overlaid onto `dist/python/hydra-kernel/`
122
- by `bin/copy-kernel-runtime.sh` so the published `hydra-kernel` wheel is self-contained
122
+ by `heads/python/bin/copy-kernel-runtime.sh` so the published `hydra-kernel` wheel is self-contained
123
123
  - `hydra/lib/` — primitive function implementations
124
124
  - `hydra/dsl/` — DSL utilities (FrozenDict, Maybe, ...)
125
125
  - `hydra/python/util/` — `ConsList`, `Lazy`, `PersistentMap`, `PersistentSet`
@@ -0,0 +1,55 @@
1
+ {
2
+ "digestFormatVersion": 1,
3
+ "moduleFormatVersion": 1,
4
+ "generator": "acdbe52b6acaa312",
5
+ "generation": {
6
+ "generatorId": "acdbe52b6acaa312",
7
+ "mode": "published",
8
+ "hydraVersion": "0.17.1",
9
+ "revision": "b77ccd1486",
10
+ "timestamp": "2026-07-22T09:11:20Z",
11
+ "host": "python"
12
+ },
13
+ "selfHash": "7de2bd54a1fc87f4f91271394e38496e77f67855b645dabbac79311a114c89e6",
14
+ "depHash:hydra-kernel": "f5d452d00985e9b5bd303c8f07989a8ec9f1f52be94021a38d9371537bf080dc",
15
+ "inputs": {
16
+ "hydra.python.coder": { "kind": "Other", "hash": "8460dc7b2ef6cd295d292b1a619c26039512723f8fc0f022b3d8472ceda8ab85" },
17
+ "hydra.python.environment": { "kind": "Other", "hash": "e14b76188ef4da15c8f011740ed2751e9b55cd0e13f9d9e9d6917cb644526ac9" },
18
+ "hydra.python.language": { "kind": "Other", "hash": "78fb867a1d0fa6654f46f5d9fd72c2c5607d2934b7c7fbd5f5d830786b4ad91e" },
19
+ "hydra.python.names": { "kind": "Other", "hash": "85e048a96cf966e2280c6ed8f74d9d801d34e8a983e04de1ab3fb73e168d97f8" },
20
+ "hydra.python.pyproject": { "kind": "Other", "hash": "249512648b2b008db234ee348a72056d4d625cfeb0a80d8caacbda95002569a2" },
21
+ "hydra.python.serde": { "kind": "Other", "hash": "fe6c5fe18dc197838e343643c3ddf497bad3ccd58573ff3dec6815deaa266d4a" },
22
+ "hydra.python.syntax": { "kind": "Other", "hash": "88a9154b48fd429f06efa0ba8981bdf12af3fed4de5a057b3304fadc623dbc19" },
23
+ "hydra.python.testing": { "kind": "Other", "hash": "624c33ec2714b57c2d5917c03b590088c210dd5b27b5f3ae78d0476e9f11859b" },
24
+ "hydra.python.utils": { "kind": "Other", "hash": "3f374ef5605f94725379aded1afcb0b5fe5ea84a4e78dd2b0bbc649d0ec672c6" },
25
+ "jsonContent:hydra/dsl/python/environment.json": { "kind": "Other", "hash": "670d83127f7a308b11a577e3481eb9926d366a1046ab99a5e1578b0bf72159c4" },
26
+ "jsonContent:hydra/dsl/python/names.json": { "kind": "Other", "hash": "244d73ec6a140f89bafcbb87dc8570a09f50151508aa0443708e7070749be876" },
27
+ "jsonContent:hydra/dsl/python/syntax.json": { "kind": "Other", "hash": "a99b94b1f3e542d606da15fd6dafa32d858ce7d71ba02f7b21d8bb4881daa4e3" },
28
+ "jsonContent:hydra/dsl/python/utils.json": { "kind": "Other", "hash": "5464cb8e1db43a03b98327746b668050f4159a90f13ce5334c32e6d7dbbceb4c" },
29
+ "jsonContent:hydra/python/coder.json": { "kind": "Other", "hash": "4fc339f05fdb67057c04b56b602c240514af03cbc6b57100420cae4f9afa24e8" },
30
+ "jsonContent:hydra/python/environment.json": { "kind": "Other", "hash": "b5bc63f7d18f47262c90738cb793098f88a97376fd52088b3c8661c1d9ea5cbd" },
31
+ "jsonContent:hydra/python/language.json": { "kind": "Other", "hash": "221e68d68030945db181fdd079be4ff619cb4cd1ad5d4b72b4e70f2aa1bd5230" },
32
+ "jsonContent:hydra/python/names.json": { "kind": "Other", "hash": "593cbc7e36735c0d92e34df76e17e4adc949e593e84bcf697b3163b2209a7b1a" },
33
+ "jsonContent:hydra/python/pyproject.json": { "kind": "Other", "hash": "c94de46f1615e6e82d2f706d01ef04293373f6241a9a42882bb394d51b4f7f53" },
34
+ "jsonContent:hydra/python/serde.json": { "kind": "Other", "hash": "2d290a404a94b22262e9c6eaed2160d2477f4ef30c428c70334a5a5c06eec4a0" },
35
+ "jsonContent:hydra/python/syntax.json": { "kind": "Other", "hash": "8dc3a26ac927fa338b273c9deee6317906977a2deec4c2df1e44ff0bbe0a64cd" },
36
+ "jsonContent:hydra/python/testing.json": { "kind": "Other", "hash": "ea1cbdd469bb2fc8bac0445d75df3d97f832f86ec460bacc06056a6f8f5bfb8a" },
37
+ "jsonContent:hydra/python/utils.json": { "kind": "Other", "hash": "19fcf00beab2f029d765d9212ae2b8be4327ef84aa54702dc55dbe620eba74dc" },
38
+ "jsonContent:manifest.json": { "kind": "Other", "hash": "3f94b521766d042381d7bee84596308ea4e35c7e8fb45f8fd8338a8dbe27a0ac" }
39
+ },
40
+ "outputs": {
41
+ "hydra/dsl/python/environment.py": { "kind": "TargetFile", "hash": "b209619140e3be5a139672944bed98f4de87b6ca48ab93981722d158fde1f424" },
42
+ "hydra/dsl/python/names.py": { "kind": "TargetFile", "hash": "3733bed7b32e56239c4c2dd5a748e66ee0f5b9eff629687648a5ebe232508a93" },
43
+ "hydra/dsl/python/syntax.py": { "kind": "TargetFile", "hash": "5fe1c0c739cdac68d1b90d768153e23ebe7c805bafb96ac698a95425e2d7d7b5" },
44
+ "hydra/dsl/python/utils.py": { "kind": "TargetFile", "hash": "fbf8522b1d5c64eb570027d579b512caf7ae3853f010b4e4666746df6d262812" },
45
+ "hydra/python/coder.py": { "kind": "TargetFile", "hash": "405bd016bb9f32c1b79a0f34815f28575880ca4f29b06cbd070975beb1c8c977" },
46
+ "hydra/python/environment.py": { "kind": "TargetFile", "hash": "240979735f3a2d479403834c1a4d7a16f060ad447eb4f3b05fbb2db591d7ad0b" },
47
+ "hydra/python/language.py": { "kind": "TargetFile", "hash": "7ea0c3a6015ec1de92aebeed0963c1af9f3b70c8d57815e477c528c795383604" },
48
+ "hydra/python/names.py": { "kind": "TargetFile", "hash": "da24e2a2622692b875e55987179397f23d243ceb2311572befada3da95fddd7c" },
49
+ "hydra/python/pyproject.py": { "kind": "TargetFile", "hash": "1f9001d8d2273d4783105e099b874c273ce520b58456f9b447cb8d5e9a6a37d7" },
50
+ "hydra/python/serde.py": { "kind": "TargetFile", "hash": "db3cd2cea527eb922af16a2a3ee33fb6092b5dbbb9151f02afa7756a1893750b" },
51
+ "hydra/python/syntax.py": { "kind": "TargetFile", "hash": "24a72af882b47d80cc930f16f51a3e9c1a71c9d8da47a921829f40e847459fca" },
52
+ "hydra/python/testing.py": { "kind": "TargetFile", "hash": "f4e37636391d0abc27a7d722554ded2e8ac7ae8a11f513cb24822d7cdbca4fe7" },
53
+ "hydra/python/utils.py": { "kind": "TargetFile", "hash": "afb0cb6952a26e4be51d8b650e69d793334c37243ab42b910a93c96eaa8ad99b" }
54
+ }
55
+ }
@@ -13,7 +13,7 @@
13
13
 
14
14
  [project]
15
15
  name = "hydra-python"
16
- version = "0.17.0"
16
+ version = "0.17.2"
17
17
  description = "Python support for Hydra"
18
18
  readme = "README.md"
19
19
  requires-python = ">=3.12"
@@ -22,7 +22,7 @@ authors = [
22
22
  { name = "Joshua Shinavier", email = "josh@fortytwo.net" },
23
23
  ]
24
24
  dependencies = [
25
- "hydra-kernel == 0.17.0",
25
+ "hydra-kernel == 0.17.2",
26
26
  ]
27
27
 
28
28
  [project.urls]
@@ -34,6 +34,9 @@ def py_graph_metadata(x: hydra.typed.TypedTerm[hydra.python.environment.PyGraph]
34
34
  hydra.core.TermProject(hydra.core.Projection(hydra.core.Name("hydra.python.environment.PyGraph"), hydra.core.Name("metadata")))),
35
35
  x.value))))
36
36
 
37
+ # DSL name token for hydra.python.environment.PyGraph.
38
+ py_graph_py_graph = hydra.typed.TypedName(hydra.core.Name("hydra.python.environment.PyGraph"))
39
+
37
40
  def py_graph_with_graph(original: hydra.typed.TypedTerm[hydra.python.environment.PyGraph], new_val: hydra.typed.TypedTerm[hydra.graph.Graph]) -> hydra.typed.TypedTerm[hydra.python.environment.PyGraph]:
38
41
  r"""DSL updater for the graph field of hydra.python.environment.PyGraph."""
39
42
 
@@ -118,6 +121,9 @@ def python_environment_nullary_bindings(x: hydra.typed.TypedTerm[hydra.python.en
118
121
  hydra.core.TermProject(hydra.core.Projection(hydra.core.Name("hydra.python.environment.PythonEnvironment"), hydra.core.Name("nullaryBindings")))),
119
122
  x.value))))
120
123
 
124
+ # DSL name token for hydra.python.environment.PythonEnvironment.
125
+ python_environment_python_environment = hydra.typed.TypedName(hydra.core.Name("hydra.python.environment.PythonEnvironment"))
126
+
121
127
  def python_environment_skip_casts(x: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment]) -> hydra.typed.TypedTerm[bool]:
122
128
  r"""DSL accessor for the skipCasts field of hydra.python.environment.PythonEnvironment."""
123
129
 
@@ -458,6 +464,9 @@ def python_module_metadata_namespaces(x: hydra.typed.TypedTerm[hydra.python.envi
458
464
  hydra.core.TermProject(hydra.core.Projection(hydra.core.Name("hydra.python.environment.PythonModuleMetadata"), hydra.core.Name("namespaces")))),
459
465
  x.value))))
460
466
 
467
+ # DSL name token for hydra.python.environment.PythonModuleMetadata.
468
+ python_module_metadata_python_module_metadata = hydra.typed.TypedName(hydra.core.Name("hydra.python.environment.PythonModuleMetadata"))
469
+
461
470
  def python_module_metadata_type_variables(x: hydra.typed.TypedTerm[hydra.python.environment.PythonModuleMetadata]) -> hydra.typed.TypedTerm[Set[hydra.core.Name]]:
462
471
  r"""DSL accessor for the typeVariables field of hydra.python.environment.PythonModuleMetadata."""
463
472
 
@@ -3336,3 +3345,6 @@ hydra.core.Field(hydra.core.Name("python310"), cast(hydra.core.Term, hydra.core.
3336
3345
  python_version_python312 = hydra.typed.TypedTerm(cast(hydra.core.Term,
3337
3346
  hydra.core.TermInject(hydra.core.Injection(hydra.core.Name("hydra.python.environment.PythonVersion"),
3338
3347
  hydra.core.Field(hydra.core.Name("python312"), cast(hydra.core.Term, hydra.core.TermUnit()))))))
3348
+
3349
+ # DSL name token for hydra.python.environment.PythonVersion.
3350
+ python_version_python_version = hydra.typed.TypedName(hydra.core.Name("hydra.python.environment.PythonVersion"))
@@ -0,0 +1,157 @@
1
+ # Note: this is an automatically generated file. Do not edit.
2
+
3
+ r"""DSL functions for hydra.python.names."""
4
+
5
+ from __future__ import annotations
6
+ from collections.abc import Callable, Mapping
7
+ from functools import lru_cache
8
+ from hydra.overlay.python.util import Lazy, PersistentMap
9
+ from typing import TypeVar, cast
10
+ import hydra.core
11
+ import hydra.typed
12
+
13
+ T0 = TypeVar("T0")
14
+ T1 = TypeVar("T1")
15
+
16
+ def encode_constant_for_field_name(arg0: hydra.typed.TypedTerm[T0], arg1: hydra.typed.TypedTerm[T1], arg2: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
17
+ r"""DSL reference to hydra.python.names.encodeConstantForFieldName."""
18
+
19
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
20
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
21
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
22
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeConstantForFieldName"))),
23
+ arg0.value))),
24
+ arg1.value))),
25
+ arg2.value))))
26
+
27
+ def encode_constant_for_type_name(arg0: hydra.typed.TypedTerm[T0], arg1: hydra.typed.TypedTerm[T1]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
28
+ r"""DSL reference to hydra.python.names.encodeConstantForTypeName."""
29
+
30
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
31
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
32
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeConstantForTypeName"))),
33
+ arg0.value))),
34
+ arg1.value))))
35
+
36
+ def encode_enum_value(arg0: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment], arg1: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
37
+ r"""DSL reference to hydra.python.names.encodeEnumValue."""
38
+
39
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
40
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
41
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeEnumValue"))), arg0.value))),
42
+ arg1.value))))
43
+
44
+ def encode_field_name(arg0: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment], arg1: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
45
+ r"""DSL reference to hydra.python.names.encodeFieldName."""
46
+
47
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
48
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
49
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeFieldName"))), arg0.value))),
50
+ arg1.value))))
51
+
52
+ def encode_name(arg0: hydra.typed.TypedTerm[bool],
53
+ arg1: hydra.typed.TypedTerm[hydra.util.CaseConvention],
54
+ arg2: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment],
55
+ arg3: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
56
+ r"""DSL reference to hydra.python.names.encodeName."""
57
+
58
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
59
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
60
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
61
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
62
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeName"))), arg0.value))),
63
+ arg1.value))),
64
+ arg2.value))),
65
+ arg3.value))))
66
+
67
+ def encode_name_qualified(arg0: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment], arg1: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
68
+ r"""DSL reference to hydra.python.names.encodeNameQualified."""
69
+
70
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
71
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
72
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeNameQualified"))), arg0.value))),
73
+ arg1.value))))
74
+
75
+ def encode_namespace(arg0: hydra.typed.TypedTerm[hydra.packaging.ModuleName]) -> hydra.typed.TypedTerm[hydra.python.syntax.DottedName]:
76
+ r"""DSL reference to hydra.python.names.encodeNamespace."""
77
+
78
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
79
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeNamespace"))), arg0.value))))
80
+
81
+ def encode_namespace_string_with_overrides(arg0: hydra.typed.TypedTerm[hydra.packaging.ModuleName]) -> hydra.typed.TypedTerm[str]:
82
+ r"""DSL reference to hydra.python.names.encodeNamespaceStringWithOverrides."""
83
+
84
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
85
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeNamespaceStringWithOverrides"))),
86
+ arg0.value))))
87
+
88
+ def encode_namespace_with_overrides(arg0: hydra.typed.TypedTerm[hydra.packaging.ModuleName]) -> hydra.typed.TypedTerm[hydra.python.syntax.DottedName]:
89
+ r"""DSL reference to hydra.python.names.encodeNamespaceWithOverrides."""
90
+
91
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
92
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeNamespaceWithOverrides"))),
93
+ arg0.value))))
94
+
95
+ def encode_type_variable(arg0: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
96
+ r"""DSL reference to hydra.python.names.encodeTypeVariable."""
97
+
98
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
99
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.encodeTypeVariable"))), arg0.value))))
100
+
101
+ # DSL reference to hydra.python.names.overlayPythonModuleAliases.
102
+ overlay_python_module_aliases = hydra.typed.TypedTerm(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.overlayPythonModuleAliases"))))
103
+
104
+ def sanitize_python_name(arg0: hydra.typed.TypedTerm[str]) -> hydra.typed.TypedTerm[str]:
105
+ r"""DSL reference to hydra.python.names.sanitizePythonName."""
106
+
107
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
108
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.sanitizePythonName"))), arg0.value))))
109
+
110
+ def term_variable_reference(arg0: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment], arg1: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Expression]:
111
+ r"""DSL reference to hydra.python.names.termVariableReference."""
112
+
113
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
114
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
115
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.termVariableReference"))), arg0.value))),
116
+ arg1.value))))
117
+
118
+ def type_variable_reference(arg0: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment], arg1: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Expression]:
119
+ r"""DSL reference to hydra.python.names.typeVariableReference."""
120
+
121
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
122
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
123
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.typeVariableReference"))), arg0.value))),
124
+ arg1.value))))
125
+
126
+ # DSL reference to hydra.python.names.useFutureAnnotations.
127
+ use_future_annotations = hydra.typed.TypedTerm(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.useFutureAnnotations"))))
128
+
129
+ def variable_reference(arg0: hydra.typed.TypedTerm[hydra.util.CaseConvention],
130
+ arg1: hydra.typed.TypedTerm[bool],
131
+ arg2: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment],
132
+ arg3: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Expression]:
133
+ r"""DSL reference to hydra.python.names.variableReference."""
134
+
135
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
136
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
137
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
138
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
139
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.variableReference"))), arg0.value))),
140
+ arg1.value))),
141
+ arg2.value))),
142
+ arg3.value))))
143
+
144
+ def variant_name(arg0: hydra.typed.TypedTerm[bool],
145
+ arg1: hydra.typed.TypedTerm[hydra.python.environment.PythonEnvironment],
146
+ arg2: hydra.typed.TypedTerm[hydra.core.Name],
147
+ arg3: hydra.typed.TypedTerm[hydra.core.Name]) -> hydra.typed.TypedTerm[hydra.python.syntax.Name]:
148
+ r"""DSL reference to hydra.python.names.variantName."""
149
+
150
+ return hydra.typed.TypedTerm(cast(hydra.core.Term,
151
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
152
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
153
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term,
154
+ hydra.core.TermApplication(hydra.core.Application(cast(hydra.core.Term, hydra.core.TermVariable(hydra.core.Name("hydra.python.names.variantName"))), arg0.value))),
155
+ arg1.value))),
156
+ arg2.value))),
157
+ arg3.value))))