astToolkit 0.7.2__tar.gz → 0.7.3__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.
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/PKG-INFO +1 -1
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/__init__.py +1 -1
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolGrab.py +1 -13
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolMake.py +1 -19
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit.egg-info/PKG-INFO +1 -1
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/pyproject.toml +1 -1
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/LICENSE +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/README.md +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_astTypes.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_dumpFunctionDef.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_dumpHandmade.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_prototypeFind.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_theSSOT.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolBe.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolDOT.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolIfThis.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolThen.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolkitAST.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolkitContainers.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/_toolkitNodeVisitor.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/py.typed +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit/transformationTools.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit.egg-info/SOURCES.txt +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit.egg-info/dependency_links.txt +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit.egg-info/requires.txt +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/astToolkit.egg-info/top_level.txt +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/setup.cfg +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/__init__.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/conftest.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/dataSamples/Make.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/dataSamples/__init__.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/dataSamples/createTestData.py +0 -0
- {asttoolkit-0.7.2 → asttoolkit-0.7.3}/tests/test_Be.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astToolkit
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: A powerfully composable, type-safe toolkit for Python abstract syntax tree (AST) manipulation, analysis, transformation, and code generation with a layered architecture designed for building sophisticated code processing assembly-lines.
|
|
5
5
|
Author-email: Hunter Hogan <HunterHogan@pm.me>
|
|
6
6
|
License: CC-BY-NC-4.0
|
|
@@ -120,7 +120,7 @@ from astToolkit._toolkitNodeVisitor import (
|
|
|
120
120
|
|
|
121
121
|
from astToolkit._toolBe import Be as Be
|
|
122
122
|
from astToolkit._toolDOT import DOT as DOT
|
|
123
|
-
from astToolkit._toolGrab import Grab as Grab
|
|
123
|
+
from astToolkit._toolGrab import Grab as Grab
|
|
124
124
|
from astToolkit._toolMake import Make as Make
|
|
125
125
|
from astToolkit._prototypeFind import Find as Find
|
|
126
126
|
|
|
@@ -12,25 +12,13 @@ from astToolkit import (
|
|
|
12
12
|
hasDOTsubject, hasDOTtag, hasDOTtarget, hasDOTtargets, hasDOTtest, hasDOTtype, hasDOTtype_comment, hasDOTtype_ignores,
|
|
13
13
|
hasDOTtype_params, hasDOTupper, hasDOTvalue, hasDOTvalues, hasDOTvararg, 一符, 个, 二符, 俪, 口, 工, 工位, 布尔符, 形, 比符)
|
|
14
14
|
from collections.abc import Callable, Sequence
|
|
15
|
-
from typing import Any
|
|
15
|
+
from typing import Any
|
|
16
16
|
import ast
|
|
17
17
|
import sys
|
|
18
18
|
|
|
19
19
|
if sys.version_info >= (3, 13):
|
|
20
20
|
from astToolkit import hasDOTdefault_value
|
|
21
21
|
|
|
22
|
-
def index[个, 归个](at: int) -> Callable[[Sequence[个]], 归个]:
|
|
23
|
-
|
|
24
|
-
def workhorse(node: Sequence[个]) -> 归个:
|
|
25
|
-
return cast('归个', node[at])
|
|
26
|
-
return workhorse
|
|
27
|
-
|
|
28
|
-
def indices[个, 归个](at: slice) -> Callable[[Sequence[个]], 归个]:
|
|
29
|
-
|
|
30
|
-
def workhorse(node: Sequence[个]) -> 归个:
|
|
31
|
-
return cast('归个', node[at])
|
|
32
|
-
return workhorse
|
|
33
|
-
|
|
34
22
|
class Grab:
|
|
35
23
|
"""Modify specific attributes of AST nodes while preserving the node structure.
|
|
36
24
|
|
|
@@ -2422,25 +2422,7 @@ class Make:
|
|
|
2422
2422
|
|
|
2423
2423
|
@staticmethod
|
|
2424
2424
|
def mod() -> ast.mod:
|
|
2425
|
-
"""Create an
|
|
2426
|
-
|
|
2427
|
-
(AI generated docstring)
|
|
2428
|
-
|
|
2429
|
-
The `mod` method creates the appropriate module type node based on the
|
|
2430
|
-
provided body. This is a convenience method that determines whether to
|
|
2431
|
-
create a `Module`, `Expression`, or `Interactive` node.
|
|
2432
|
-
|
|
2433
|
-
Parameters
|
|
2434
|
-
----------
|
|
2435
|
-
body : list[ast.stmt] | ast.expr
|
|
2436
|
-
Either a list of statements or a single expression
|
|
2437
|
-
|
|
2438
|
-
Returns
|
|
2439
|
-
-------
|
|
2440
|
-
nodeMod : ast.mod
|
|
2441
|
-
The constructed module node of appropriate type
|
|
2442
|
-
|
|
2443
|
-
"""
|
|
2425
|
+
"""Create an abstract `ast.mod` (***mod***ule) `object`."""
|
|
2444
2426
|
return ast.mod()
|
|
2445
2427
|
|
|
2446
2428
|
class Mod(ast.Mod):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astToolkit
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: A powerfully composable, type-safe toolkit for Python abstract syntax tree (AST) manipulation, analysis, transformation, and code generation with a layered architecture designed for building sophisticated code processing assembly-lines.
|
|
5
5
|
Author-email: Hunter Hogan <HunterHogan@pm.me>
|
|
6
6
|
License: CC-BY-NC-4.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "astToolkit"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.3"
|
|
4
4
|
description = "A powerfully composable, type-safe toolkit for Python abstract syntax tree (AST) manipulation, analysis, transformation, and code generation with a layered architecture designed for building sophisticated code processing assembly-lines."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|