xerini 0.3.1__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 (67) hide show
  1. xerini-0.3.1/.gitignore +9 -0
  2. xerini-0.3.1/.gitlab-ci.yml +150 -0
  3. xerini-0.3.1/.python-version +1 -0
  4. xerini-0.3.1/Dockerfile +20 -0
  5. xerini-0.3.1/LICENSE +21 -0
  6. xerini-0.3.1/Makefile +54 -0
  7. xerini-0.3.1/PKG-INFO +58 -0
  8. xerini-0.3.1/README.md +32 -0
  9. xerini-0.3.1/deploy.Dockerfile +33 -0
  10. xerini-0.3.1/docs/classes_xerini.svg +207 -0
  11. xerini-0.3.1/docs/gemini_example.dot.svg +118 -0
  12. xerini-0.3.1/docs/index.md +236 -0
  13. xerini-0.3.1/docs/logo.png +0 -0
  14. xerini-0.3.1/docs/packages_xerini.svg +85 -0
  15. xerini-0.3.1/docs/puml.png +0 -0
  16. xerini-0.3.1/docs/simple.dot.svg +34 -0
  17. xerini-0.3.1/docs/xerini/enums.md +3 -0
  18. xerini-0.3.1/docs/xerini/script.md +3 -0
  19. xerini-0.3.1/docs/xerini/statement.md +3 -0
  20. xerini-0.3.1/docs/xerini/utilities.md +3 -0
  21. xerini-0.3.1/docs/xerini.puml +26 -0
  22. xerini-0.3.1/htmlcov/.gitignore +2 -0
  23. xerini-0.3.1/htmlcov/class_index.html +213 -0
  24. xerini-0.3.1/htmlcov/coverage_html_cb_6fb7b396.js +733 -0
  25. xerini-0.3.1/htmlcov/favicon_32_cb_58284776.png +0 -0
  26. xerini-0.3.1/htmlcov/function_index.html +583 -0
  27. xerini-0.3.1/htmlcov/index.html +164 -0
  28. xerini-0.3.1/htmlcov/keybd_closed_cb_ce680311.png +0 -0
  29. xerini-0.3.1/htmlcov/status.json +1 -0
  30. xerini-0.3.1/htmlcov/style_cb_8e611ae1.css +337 -0
  31. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24___init___py.html +99 -0
  32. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24_enums_py.html +164 -0
  33. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24_script_py.html +285 -0
  34. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24_statement_py.html +276 -0
  35. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24_supported_query_types_py.html +110 -0
  36. xerini-0.3.1/htmlcov/z_8691a3b8b5633c24_utilities_py.html +209 -0
  37. xerini-0.3.1/mkdocs.yml +76 -0
  38. xerini-0.3.1/mypy.ini +4 -0
  39. xerini-0.3.1/pyproject.toml +61 -0
  40. xerini-0.3.1/tests/__init__.py +0 -0
  41. xerini-0.3.1/tests/grab_sql_scripts.py +20 -0
  42. xerini-0.3.1/tests/sql_scripts/ignored/drop_view.sql +1 -0
  43. xerini-0.3.1/tests/sql_scripts/old_bugs/07_gemini_script.sql +134 -0
  44. xerini-0.3.1/tests/sql_scripts/recognized/create.sql +6 -0
  45. xerini-0.3.1/tests/sql_scripts/recognized/create_as.sql +1 -0
  46. xerini-0.3.1/tests/sql_scripts/recognized/create_as_bigquery.sql +1 -0
  47. xerini-0.3.1/tests/sql_scripts/recognized/create_as_with_schema.sql +1 -0
  48. xerini-0.3.1/tests/sql_scripts/recognized/create_or_replace__as_bigquery.sql +1 -0
  49. xerini-0.3.1/tests/sql_scripts/recognized/delete.sql +1 -0
  50. xerini-0.3.1/tests/sql_scripts/recognized/drop.sql +1 -0
  51. xerini-0.3.1/tests/sql_scripts/recognized/drop_if_exists.sql +1 -0
  52. xerini-0.3.1/tests/sql_scripts/recognized/insert_select.sql +1 -0
  53. xerini-0.3.1/tests/sql_scripts/recognized/select.sql +1 -0
  54. xerini-0.3.1/tests/sql_scripts/recognized/truncate.sql +1 -0
  55. xerini-0.3.1/tests/sql_scripts/recognized/update.sql +3 -0
  56. xerini-0.3.1/tests/test_gemini_script.py +31 -0
  57. xerini-0.3.1/tests/test_script.py +153 -0
  58. xerini-0.3.1/tests/test_sql_metadata_base_statements.py +99 -0
  59. xerini-0.3.1/tests/test_statement.py +268 -0
  60. xerini-0.3.1/tests/test_statement_type.py +69 -0
  61. xerini-0.3.1/tests/test_utilities.py +317 -0
  62. xerini-0.3.1/xerini/__init__.py +0 -0
  63. xerini-0.3.1/xerini/enums.py +65 -0
  64. xerini-0.3.1/xerini/script.py +186 -0
  65. xerini-0.3.1/xerini/statement.py +177 -0
  66. xerini-0.3.1/xerini/supported_query_types.py +11 -0
  67. xerini-0.3.1/xerini/utilities.py +110 -0
@@ -0,0 +1,9 @@
1
+ .idea/
2
+ .hypothesis/
3
+ **/__pycache__/
4
+ public/
5
+ uv.lock
6
+ .coverage
7
+ test_coverage.xml
8
+ test_results.xml
9
+
@@ -0,0 +1,150 @@
1
+ stages:
2
+ - information
3
+ - infrastructure
4
+ - MBLT
5
+ - deploy
6
+
7
+ variables:
8
+ BASE_IMAGE: "registry.gitlab.com/tipanverella/faktori/python-uv:latest"
9
+ WORKING_IMAGE: "$CI_REGISTRY_IMAGE/work:$CI_COMMIT_BRANCH"
10
+ DEPLOY_IMAGE: "$CI_REGISTRY_IMAGE/deploy:$CI_COMMIT_BRANCH"
11
+
12
+ python-uv-check:
13
+ image: $BASE_IMAGE
14
+ stage: information
15
+ script:
16
+ - uname -a
17
+ - lscpu
18
+ - cat /proc/meminfo
19
+ - df -h
20
+ - pwd
21
+ - ls -lastrh
22
+ - uv --version
23
+ - uv run python --version
24
+ - uv run poetry --version
25
+ rules:
26
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
27
+ changes:
28
+ - .gitlab-ci.yml
29
+
30
+ deploy-image:
31
+ # Use the official docker image.
32
+ image: docker:latest
33
+ stage: deploy
34
+ services:
35
+ - docker:dind
36
+ before_script:
37
+ - echo $CI_JOB_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
38
+ script:
39
+ - docker build --pull -t "$DEPLOY_IMAGE" -f deploy.Dockerfile .
40
+ - docker push "$DEPLOY_IMAGE"
41
+ rules:
42
+ - if: "$CI_COMMIT_BRANCH != null"
43
+ changes:
44
+ - deploy.Dockerfile
45
+ - pyproject.toml
46
+ - .gitlab-ci.yml
47
+
48
+ repo-image:
49
+ # Use the official docker image.
50
+ image: docker:latest
51
+ stage: infrastructure
52
+ services:
53
+ - docker:dind
54
+ before_script:
55
+ - echo $CI_JOB_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
56
+ script:
57
+ - docker build --pull -t "$WORKING_IMAGE" .
58
+ - docker push "$WORKING_IMAGE"
59
+ rules:
60
+ - if: "$CI_COMMIT_BRANCH != null"
61
+ changes:
62
+ - Dockerfile
63
+ - pyproject.toml
64
+ - .gitlab-ci.yml
65
+
66
+ mypy:
67
+ image: $WORKING_IMAGE
68
+ stage: MBLT
69
+ script: make static
70
+ rules:
71
+ - if:
72
+ changes:
73
+ - xerini/**/*.py
74
+ - xerini/*.py
75
+
76
+ black:
77
+ image: $WORKING_IMAGE
78
+ stage: MBLT
79
+ script: make black
80
+ rules:
81
+ - if:
82
+ changes:
83
+ - xerini/**/*.py
84
+ - tests/**/*.py
85
+ - xerini/*.py
86
+ - tests/*.py
87
+
88
+ lint:
89
+ image: $WORKING_IMAGE
90
+ stage: MBLT
91
+ script: make lint
92
+ rules:
93
+ - if:
94
+ changes:
95
+ - xerini/**/*.py
96
+ - xerini/*.py
97
+
98
+ test:
99
+ image: $WORKING_IMAGE
100
+ stage: MBLT
101
+ script: make test
102
+ rules:
103
+ - if:
104
+ changes:
105
+ - xerini/**/*.py
106
+ - tests/**/*.py
107
+ - xerini/*.py
108
+ - tests/*.py
109
+
110
+ coverage:
111
+ image: $WORKING_IMAGE
112
+ stage: MBLT
113
+ script: make coverage
114
+ coverage: "/TOTAL.+ ([0-9]{1,3}%)/"
115
+ artifacts:
116
+ reports:
117
+ coverage_report:
118
+ coverage_format: cobertura # or jacoco
119
+ path: test_coverage.xml
120
+ rules:
121
+ - if:
122
+ changes:
123
+ - xerini/**/*.py
124
+ - tests/**/*.py
125
+ - xerini/*.py
126
+ - tests/*.py
127
+
128
+ pages:
129
+ stage: deploy
130
+ image: $WORKING_IMAGE
131
+ script: make deploy
132
+ artifacts:
133
+ paths:
134
+ - public
135
+ rules:
136
+ - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
137
+
138
+ publish:
139
+ image: $WORKING_IMAGE
140
+ stage: deploy
141
+ variables:
142
+ TWINE_USERNAME: gitlab-ci-token
143
+ TWINE_PASSWORD: $CI_JOB_TOKEN
144
+ script:
145
+ - make build
146
+ - uv run twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
147
+ rules:
148
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
149
+ changes:
150
+ - pyproject.toml
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,20 @@
1
+ FROM registry.gitlab.com/tipanverella/faktori/python-uv:latest
2
+ LABEL authors="tipanverella"
3
+
4
+ WORKDIR /Sciurus
5
+
6
+ COPY pyproject.toml ./
7
+
8
+ ENV PATH=$PATH:/root/.local/bin
9
+ RUN uv lock
10
+
11
+ COPY xerini ./sciurus
12
+ COPY mypy.ini ./
13
+ COPY tests ./tests
14
+ COPY mkdocs.yml ./
15
+ COPY docs ./docs
16
+ COPY README.md ./
17
+ COPY Makefile ./
18
+
19
+ RUN uv sync
20
+ RUN uv venv
xerini-0.3.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 J. Tipan Verella
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
xerini-0.3.1/Makefile ADDED
@@ -0,0 +1,54 @@
1
+ PY_SRC := xerini
2
+ TEST_SUITE := $(wildcard *test_*.py)
3
+ DOCS := docs
4
+ CC = python
5
+ PPM = uv
6
+ POETRY = uvx poetry
7
+ BLACK = $(PPM) run black
8
+ LINT = $(PPM) run pylint
9
+ STATIC = $(PPM) run mypy
10
+ TEST = $(PPM) run pytest
11
+
12
+ all: ready clean
13
+
14
+ black: $(PY_SRC) $(TEST_SUITE)
15
+ $(BLACK) .
16
+
17
+ static: $(PY_SRC)
18
+ $(STATIC) $(PY_SRC)
19
+
20
+ lint: $(PY_SRC)
21
+ $(LINT) $(PY_SRC)
22
+
23
+ test: $(PY_SRC) $(TEST_SUITE)
24
+ $(TEST) -vv
25
+
26
+ coverage: $(PY_SRC) $(TEST_SUITE)
27
+ rm -rf htmlcov
28
+ $(TEST) -vv --junitxml=test_results.xml --cov-report xml:test_coverage.xml --cov-report=term --cov-report=html --cov-branch --cov-report term-missing --cov=$(PY_SRC) tests
29
+
30
+ dox: $(DOCS) coverage
31
+ rm -rf public
32
+ $(PPM) run mkdocs build
33
+
34
+ deploy: dox
35
+ (cd $(DOCS); $(PPM) run pyreverse -ASmy --colorized -o svg -p xerini ../$(PY_SRC);)
36
+ $(PPM) run mkdocs build --strict --verbose
37
+
38
+
39
+ build: $(PY_SRC) $(TEST_SUITE)
40
+ rm -rf dist
41
+ $(PPM) build
42
+
43
+ puml: $(PY_SRC)
44
+ py2puml $(PY_SRC) $(PY_SRC) > docs/sciurus.puml
45
+ pyreverse -o svg -p sciurus sciurus -ASmy --colorized
46
+ mv classes_sciurus.svg $(DOCS)/classes_sciurus.svg
47
+ mv packages_sciurus.svg $(DOCS)/packages_sciurus.svg
48
+
49
+ clean:
50
+ rm -rf `find . -name __pycache__`
51
+ rm -f `find . -type f -name '*.py[co]'`
52
+ ready: black lint static test coverage dox
53
+
54
+ .PHONY: clean ready
xerini-0.3.1/PKG-INFO ADDED
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: xerini
3
+ Version: 0.3.1
4
+ Summary: A minimal python library for orchestrating runs of large SQL scripts.
5
+ Author-email: "J. Tipan VERELLA" <tipan.verella@gmail.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Intended Audience :: Information Technology
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: Implementation :: CPython
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: networkx>=3.4.2
22
+ Requires-Dist: pydantic>=2.10.6
23
+ Requires-Dist: pygraphviz>=1.14
24
+ Requires-Dist: sql-metadata>=2.17.0
25
+ Description-Content-Type: text/markdown
26
+
27
+ # Sciurus
28
+ ![coverage](https://gitlab.com/tipanverella/sciurus/badges/main/coverage.svg?job=coverage)
29
+
30
+ Sciurus is a python library for orchestrating runs of large `SQL` scripts.
31
+
32
+ You can explore the library by checking out [this documentation](https://sciurus-76b570.gitlab.io/).
33
+
34
+ You can quickly try it out if you have `docker`:
35
+
36
+ 1. Run the following in the project directory after cloning it:
37
+
38
+ ```zsh
39
+ docker build -t xerini -f Dockerfile .
40
+ docker run -it xerini zsh
41
+ ```
42
+
43
+ 2. When inside the container run:
44
+
45
+
46
+ ```zsh
47
+ make
48
+ ```
49
+ This will run `black`, `pylint`, `mypy`, and `pytest`
50
+
51
+
52
+ 3. You can also build and use the deployment container:
53
+
54
+ ```zsh
55
+ docker build -t xerini-deploy -f deploy.Dockerfile . --no-cache
56
+ docker run -it xerini-deploy python -c "from sciurus.utilities import random_id8; print(random_id8())"
57
+ ```
58
+ This should produce a `random_id8()` string
xerini-0.3.1/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Sciurus
2
+ ![coverage](https://gitlab.com/tipanverella/sciurus/badges/main/coverage.svg?job=coverage)
3
+
4
+ Sciurus is a python library for orchestrating runs of large `SQL` scripts.
5
+
6
+ You can explore the library by checking out [this documentation](https://sciurus-76b570.gitlab.io/).
7
+
8
+ You can quickly try it out if you have `docker`:
9
+
10
+ 1. Run the following in the project directory after cloning it:
11
+
12
+ ```zsh
13
+ docker build -t xerini -f Dockerfile .
14
+ docker run -it xerini zsh
15
+ ```
16
+
17
+ 2. When inside the container run:
18
+
19
+
20
+ ```zsh
21
+ make
22
+ ```
23
+ This will run `black`, `pylint`, `mypy`, and `pytest`
24
+
25
+
26
+ 3. You can also build and use the deployment container:
27
+
28
+ ```zsh
29
+ docker build -t xerini-deploy -f deploy.Dockerfile . --no-cache
30
+ docker run -it xerini-deploy python -c "from sciurus.utilities import random_id8; print(random_id8())"
31
+ ```
32
+ This should produce a `random_id8()` string
@@ -0,0 +1,33 @@
1
+ FROM registry.gitlab.com/tipanverella/faktori/python-uv:latest AS builder
2
+ LABEL authors="tipanverella"
3
+
4
+ WORKDIR /Sciurus
5
+
6
+ COPY pyproject.toml ./
7
+
8
+ ENV PATH=${PATH}:/root/.local/bin
9
+ RUN uv lock
10
+
11
+ COPY xerini ./sciurus
12
+ COPY mypy.ini ./
13
+ COPY tests ./tests
14
+ COPY mkdocs.yml ./
15
+ COPY docs ./docs
16
+ COPY README.md ./
17
+ COPY Makefile ./
18
+
19
+ RUN uv venv
20
+ RUN uv run python --version
21
+ RUN uv sync --no-group all
22
+
23
+ FROM python:3.11-alpine AS production
24
+
25
+ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
26
+ USER appuser
27
+
28
+ WORKDIR /app
29
+
30
+ COPY xerini ./sciurus
31
+ COPY --from=builder /Sciurus/.venv .venv
32
+ ENV PATH="/app/.venv/bin:${PATH}"
33
+
@@ -0,0 +1,207 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <!-- Generated by graphviz version 2.43.0 (0)
5
+ -->
6
+ <!-- Title: classes_sciurus Pages: 1 -->
7
+ <svg width="1972pt" height="1366pt"
8
+ viewBox="0.00 0.00 1972.00 1365.80" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 1361.8)">
10
+ <title>classes_sciurus</title>
11
+ <polygon fill="white" stroke="transparent" points="-4,4 -4,-1361.8 1968,-1361.8 1968,4 -4,4"/>
12
+ <!-- pydantic.main.BaseModel -->
13
+ <g id="node1" class="node">
14
+ <title>pydantic.main.BaseModel</title>
15
+ <polygon fill="#99ddff" stroke="#99ddff" points="0,-921.3 0,-1357.3 1019,-1357.3 1019,-921.3 0,-921.3"/>
16
+ <text text-anchor="start" x="417" y="-1342.1" font-family="Times,serif" font-size="14.00">pydantic.main.BaseModel</text>
17
+ <polyline fill="none" stroke="#99ddff" points="0,-1334.3 1019,-1334.3 "/>
18
+ <text text-anchor="start" x="282" y="-1319.1" font-family="Times,serif" font-size="14.00">model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]]</text>
19
+ <text text-anchor="start" x="282" y="-1304.1" font-family="Times,serif" font-size="14.00">model_config : ClassVar[ConfigDict]</text>
20
+ <text text-anchor="start" x="282" y="-1289.1" font-family="Times,serif" font-size="14.00">model_extra</text>
21
+ <text text-anchor="start" x="282" y="-1274.1" font-family="Times,serif" font-size="14.00">model_fields : ClassVar[dict[str, FieldInfo]]</text>
22
+ <text text-anchor="start" x="282" y="-1259.1" font-family="Times,serif" font-size="14.00">model_fields_set</text>
23
+ <polyline fill="none" stroke="#99ddff" points="0,-1251.3 1019,-1251.3 "/>
24
+ <text text-anchor="start" x="8" y="-1237.1" font-family="Times,serif" font-size="14.00">construct(_fields_set: set[str] | None): Self</text>
25
+ <text text-anchor="start" x="8" y="-1223.1" font-family="Times,serif" font-size="14.00">copy(): Self</text>
26
+ <text text-anchor="start" x="8" y="-1209.1" font-family="Times,serif" font-size="14.00">dict(): Dict[str, Any]</text>
27
+ <text text-anchor="start" x="8" y="-1195.1" font-family="Times,serif" font-size="14.00">from_orm(obj: Any): Self</text>
28
+ <text text-anchor="start" x="8" y="-1181.1" font-family="Times,serif" font-size="14.00">json(): str</text>
29
+ <text text-anchor="start" x="8" y="-1167.1" font-family="Times,serif" font-size="14.00">model_construct(_fields_set: set[str] | None): Self</text>
30
+ <text text-anchor="start" x="8" y="-1153.1" font-family="Times,serif" font-size="14.00">model_copy(): Self</text>
31
+ <text text-anchor="start" x="8" y="-1139.1" font-family="Times,serif" font-size="14.00">model_dump(): dict[str, Any]</text>
32
+ <text text-anchor="start" x="8" y="-1125.1" font-family="Times,serif" font-size="14.00">model_dump_json(): str</text>
33
+ <text text-anchor="start" x="8" y="-1111.1" font-family="Times,serif" font-size="14.00">model_json_schema(by_alias: bool, ref_template: str, schema_generator: type[GenerateJsonSchema], mode: JsonSchemaMode): dict[str, Any]</text>
34
+ <text text-anchor="start" x="8" y="-1097.1" font-family="Times,serif" font-size="14.00">model_parametrized_name(params: tuple[type[Any], ...]): str</text>
35
+ <text text-anchor="start" x="8" y="-1083.1" font-family="Times,serif" font-style="italic" font-size="14.00">model_post_init</text>
36
+ <text text-anchor="start" x="120" y="-1083.1" font-family="Times,serif" font-size="14.00">(__context: Any): None</text>
37
+ <text text-anchor="start" x="8" y="-1069.1" font-family="Times,serif" font-size="14.00">model_rebuild(): bool | None</text>
38
+ <text text-anchor="start" x="8" y="-1055.1" font-family="Times,serif" font-size="14.00">model_validate(obj: Any): Self</text>
39
+ <text text-anchor="start" x="8" y="-1041.1" font-family="Times,serif" font-size="14.00">model_validate_json(json_data: str | bytes | bytearray): Self</text>
40
+ <text text-anchor="start" x="8" y="-1027.1" font-family="Times,serif" font-size="14.00">model_validate_strings(obj: Any): Self</text>
41
+ <text text-anchor="start" x="8" y="-1013.1" font-family="Times,serif" font-size="14.00">parse_file(path: str | Path): Self</text>
42
+ <text text-anchor="start" x="8" y="-999.1" font-family="Times,serif" font-size="14.00">parse_obj(obj: Any): Self</text>
43
+ <text text-anchor="start" x="8" y="-985.1" font-family="Times,serif" font-size="14.00">parse_raw(b: str | bytes): Self</text>
44
+ <text text-anchor="start" x="8" y="-971.1" font-family="Times,serif" font-size="14.00">schema(by_alias: bool, ref_template: str): Dict[str, Any]</text>
45
+ <text text-anchor="start" x="8" y="-957.1" font-family="Times,serif" font-size="14.00">schema_json(): str</text>
46
+ <text text-anchor="start" x="8" y="-943.1" font-family="Times,serif" font-size="14.00">update_forward_refs(): None</text>
47
+ <text text-anchor="start" x="8" y="-929.1" font-family="Times,serif" font-size="14.00">validate(value: Any): Self</text>
48
+ </g>
49
+ <!-- xerini.enums.StatementType -->
50
+ <g id="node2" class="node">
51
+ <title>sciurus.enums.StatementType</title>
52
+ <polygon fill="#77aadd" stroke="#77aadd" points="1014,-8.9 1014,-77.9 1371,-77.9 1371,-8.9 1014,-8.9"/>
53
+ <text text-anchor="start" x="1083.5" y="-62.7" font-family="Times,serif" font-size="14.00">sciurus.enums.StatementType</text>
54
+ <polyline fill="none" stroke="#77aadd" points="1014,-54.9 1371,-54.9 "/>
55
+ <text text-anchor="start" x="1172.5" y="-39.7" font-family="Times,serif" font-size="14.00">name</text>
56
+ <polyline fill="none" stroke="#77aadd" points="1014,-31.9 1371,-31.9 "/>
57
+ <text text-anchor="start" x="1022" y="-16.7" font-family="Times,serif" font-size="14.00">from_query_type(smd_qt: Optional[QueryType])</text>
58
+ </g>
59
+ <!-- xerini.enums.TableWriteType -->
60
+ <g id="node3" class="node">
61
+ <title>sciurus.enums.TableWriteType</title>
62
+ <polygon fill="#77aadd" stroke="#77aadd" points="1389,-8.9 1389,-77.9 1964,-77.9 1964,-8.9 1389,-8.9"/>
63
+ <text text-anchor="start" x="1566.5" y="-62.7" font-family="Times,serif" font-size="14.00">sciurus.enums.TableWriteType</text>
64
+ <polyline fill="none" stroke="#77aadd" points="1389,-54.9 1964,-54.9 "/>
65
+ <text text-anchor="start" x="1656.5" y="-39.7" font-family="Times,serif" font-size="14.00">name</text>
66
+ <polyline fill="none" stroke="#77aadd" points="1389,-31.9 1964,-31.9 "/>
67
+ <text text-anchor="start" x="1397" y="-16.7" font-family="Times,serif" font-size="14.00">from_statement_query(stmt_tp: StatementType, qry_tp: Optional[QueryType])</text>
68
+ </g>
69
+ <!-- xerini.script.Script -->
70
+ <g id="node4" class="node">
71
+ <title>sciurus.script.Script</title>
72
+ <polygon fill="#77aadd" stroke="#77aadd" points="333,-589.3 333,-883.3 662,-883.3 662,-589.3 333,-589.3"/>
73
+ <text text-anchor="start" x="424.5" y="-868.1" font-family="Times,serif" font-size="14.00">sciurus.script.Script</text>
74
+ <polyline fill="none" stroke="#77aadd" points="333,-860.3 662,-860.3 "/>
75
+ <text text-anchor="start" x="411.5" y="-845.1" font-family="Times,serif" font-size="14.00">digraph</text>
76
+ <text text-anchor="start" x="411.5" y="-830.1" font-family="Times,serif" font-size="14.00">formatted_text</text>
77
+ <text text-anchor="start" x="411.5" y="-815.1" font-family="Times,serif" font-size="14.00">is_valid</text>
78
+ <text text-anchor="start" x="411.5" y="-800.1" font-family="Times,serif" font-size="14.00">raw_code : Optional[str]</text>
79
+ <text text-anchor="start" x="411.5" y="-785.1" font-family="Times,serif" font-size="14.00">statement_query_types</text>
80
+ <text text-anchor="start" x="411.5" y="-770.1" font-family="Times,serif" font-size="14.00">statement_types</text>
81
+ <text text-anchor="start" x="411.5" y="-755.1" font-family="Times,serif" font-size="14.00">statement_write_types</text>
82
+ <text text-anchor="start" x="411.5" y="-740.1" font-family="Times,serif" font-size="14.00">statements</text>
83
+ <polyline fill="none" stroke="#77aadd" points="333,-732.3 662,-732.3 "/>
84
+ <text text-anchor="start" x="341" y="-717.1" font-family="Times,serif" font-size="14.00">from_directory(directory: Path): Self</text>
85
+ <text text-anchor="start" x="341" y="-702.1" font-family="Times,serif" font-size="14.00">from_file(pth: Path): Self</text>
86
+ <text text-anchor="start" x="341" y="-687.1" font-family="Times,serif" font-size="14.00">from_string(text: str): Self</text>
87
+ <text text-anchor="start" x="341" y="-672.1" font-family="Times,serif" font-size="14.00">keys(): set[str | None]</text>
88
+ <text text-anchor="start" x="341" y="-657.1" font-family="Times,serif" font-size="14.00">stage_decomposition(): list[set[str]]</text>
89
+ <text text-anchor="start" x="341" y="-642.1" font-family="Times,serif" font-size="14.00">write(output: Path): None</text>
90
+ <text text-anchor="start" x="341" y="-627.1" font-family="Times,serif" font-size="14.00">write_dot(file: Path, name: str): Path</text>
91
+ <text text-anchor="start" x="341" y="-612.1" font-family="Times,serif" font-size="14.00">write_orchestration(staged_directory: Path)</text>
92
+ <text text-anchor="start" x="341" y="-597.1" font-family="Times,serif" font-size="14.00">write_svg(dot_file: Path): Path</text>
93
+ </g>
94
+ <!-- xerini.script.Script&#45;&gt;pydantic.main.BaseModel -->
95
+ <g id="edge1" class="edge">
96
+ <title>sciurus.script.Script&#45;&gt;pydantic.main.BaseModel</title>
97
+ <path fill="none" stroke="black" d="M501.87,-883.49C502.15,-892.53 502.42,-901.73 502.7,-911.01"/>
98
+ <polygon fill="none" stroke="black" points="499.2,-911.21 503,-921.1 506.2,-911 499.2,-911.21"/>
99
+ </g>
100
+ <!-- xerini.statement.Statement -->
101
+ <g id="node5" class="node">
102
+ <title>sciurus.statement.Statement</title>
103
+ <polygon fill="#77aadd" stroke="#77aadd" points="680,-604.3 680,-868.3 1033,-868.3 1033,-604.3 680,-604.3"/>
104
+ <text text-anchor="start" x="752" y="-853.1" font-family="Times,serif" font-size="14.00">sciurus.statement.Statement</text>
105
+ <polyline fill="none" stroke="#77aadd" points="680,-845.3 1033,-845.3 "/>
106
+ <text text-anchor="start" x="730.5" y="-830.1" font-family="Times,serif" font-size="14.00">affected_table</text>
107
+ <text text-anchor="start" x="730.5" y="-815.1" font-family="Times,serif" font-size="14.00">formatted_text</text>
108
+ <text text-anchor="start" x="730.5" y="-800.1" font-family="Times,serif" font-size="14.00">non_empty_tokens</text>
109
+ <text text-anchor="start" x="730.5" y="-785.1" font-family="Times,serif" font-size="14.00">normalized_successive_token_pairs</text>
110
+ <text text-anchor="start" x="730.5" y="-770.1" font-family="Times,serif" font-size="14.00">parsed_text</text>
111
+ <text text-anchor="start" x="730.5" y="-755.1" font-family="Times,serif" font-size="14.00">query_type</text>
112
+ <text text-anchor="start" x="730.5" y="-740.1" font-family="Times,serif" font-size="14.00">source_tables</text>
113
+ <text text-anchor="start" x="730.5" y="-725.1" font-family="Times,serif" font-size="14.00">statement_type</text>
114
+ <text text-anchor="start" x="730.5" y="-710.1" font-family="Times,serif" font-size="14.00">tables</text>
115
+ <text text-anchor="start" x="730.5" y="-695.1" font-family="Times,serif" font-size="14.00">text : str</text>
116
+ <text text-anchor="start" x="730.5" y="-680.1" font-family="Times,serif" font-size="14.00">write_type</text>
117
+ <polyline fill="none" stroke="#77aadd" points="680,-672.3 1033,-672.3 "/>
118
+ <text text-anchor="start" x="688" y="-657.1" font-family="Times,serif" font-size="14.00">only_one_statement(data: dict)</text>
119
+ <text text-anchor="start" x="688" y="-642.1" font-family="Times,serif" font-size="14.00">set_parsed_text(): Self</text>
120
+ <text text-anchor="start" x="688" y="-627.1" font-family="Times,serif" font-size="14.00">set_query_type(): Self</text>
121
+ <text text-anchor="start" x="688" y="-612.1" font-family="Times,serif" font-size="14.00">what_are_we_truncating_dropping(): str | None</text>
122
+ </g>
123
+ <!-- xerini.statement.Statement&#45;&gt;pydantic.main.BaseModel -->
124
+ <g id="edge2" class="edge">
125
+ <title>sciurus.statement.Statement&#45;&gt;pydantic.main.BaseModel</title>
126
+ <path fill="none" stroke="black" d="M743.12,-868.32C730.46,-882.95 717.32,-898.14 704,-913.53"/>
127
+ <polygon fill="none" stroke="black" points="701.35,-911.24 697.45,-921.1 706.64,-915.82 701.35,-911.24"/>
128
+ </g>
129
+ <!-- sql_metadata.parser.Parser -->
130
+ <g id="node6" class="node">
131
+ <title>sql_metadata.parser.Parser</title>
132
+ <polygon fill="#44bb99" stroke="#44bb99" points="739.5,-138.3 739.5,-537.3 973.5,-537.3 973.5,-138.3 739.5,-138.3"/>
133
+ <text text-anchor="start" x="758.5" y="-522.1" font-family="Times,serif" font-size="14.00">sql_metadata.parser.Parser</text>
134
+ <polyline fill="none" stroke="#44bb99" points="739.5,-514.3 973.5,-514.3 "/>
135
+ <text text-anchor="start" x="747.5" y="-499.1" font-family="Times,serif" font-size="14.00">columns</text>
136
+ <text text-anchor="start" x="747.5" y="-484.1" font-family="Times,serif" font-size="14.00">columns_aliases</text>
137
+ <text text-anchor="start" x="747.5" y="-469.1" font-family="Times,serif" font-size="14.00">columns_aliases_dict</text>
138
+ <text text-anchor="start" x="747.5" y="-454.1" font-family="Times,serif" font-size="14.00">columns_aliases_names</text>
139
+ <text text-anchor="start" x="747.5" y="-439.1" font-family="Times,serif" font-size="14.00">columns_dict</text>
140
+ <text text-anchor="start" x="747.5" y="-424.1" font-family="Times,serif" font-size="14.00">comments</text>
141
+ <text text-anchor="start" x="747.5" y="-409.1" font-family="Times,serif" font-size="14.00">generalize</text>
142
+ <text text-anchor="start" x="747.5" y="-394.1" font-family="Times,serif" font-size="14.00">limit_and_offset</text>
143
+ <text text-anchor="start" x="747.5" y="-379.1" font-family="Times,serif" font-size="14.00">non_empty_tokens : NoneType</text>
144
+ <text text-anchor="start" x="747.5" y="-364.1" font-family="Times,serif" font-size="14.00">query</text>
145
+ <text text-anchor="start" x="747.5" y="-349.1" font-family="Times,serif" font-size="14.00">query_type</text>
146
+ <text text-anchor="start" x="747.5" y="-334.1" font-family="Times,serif" font-size="14.00">sqlparse_tokens : NoneType</text>
147
+ <text text-anchor="start" x="747.5" y="-319.1" font-family="Times,serif" font-size="14.00">subqueries</text>
148
+ <text text-anchor="start" x="747.5" y="-304.1" font-family="Times,serif" font-size="14.00">subqueries_names</text>
149
+ <text text-anchor="start" x="747.5" y="-289.1" font-family="Times,serif" font-size="14.00">tables</text>
150
+ <text text-anchor="start" x="747.5" y="-274.1" font-family="Times,serif" font-size="14.00">tables_aliases</text>
151
+ <text text-anchor="start" x="747.5" y="-259.1" font-family="Times,serif" font-size="14.00">tokens</text>
152
+ <text text-anchor="start" x="747.5" y="-244.1" font-family="Times,serif" font-size="14.00">tokens_length : NoneType</text>
153
+ <text text-anchor="start" x="747.5" y="-229.1" font-family="Times,serif" font-size="14.00">values</text>
154
+ <text text-anchor="start" x="747.5" y="-214.1" font-family="Times,serif" font-size="14.00">values_dict</text>
155
+ <text text-anchor="start" x="747.5" y="-199.1" font-family="Times,serif" font-size="14.00">with_names</text>
156
+ <text text-anchor="start" x="747.5" y="-184.1" font-family="Times,serif" font-size="14.00">with_queries</text>
157
+ <text text-anchor="start" x="747.5" y="-169.1" font-family="Times,serif" font-size="14.00">without_comments</text>
158
+ <polyline fill="none" stroke="#44bb99" points="739.5,-161.3 973.5,-161.3 "/>
159
+ <text text-anchor="start" x="854" y="-146.1" font-family="Times,serif" font-size="14.00"> </text>
160
+ </g>
161
+ <!-- sql_metadata.parser.Parser&#45;&gt;xerini.statement.Statement -->
162
+ <g id="edge3" class="edge">
163
+ <title>sql_metadata.parser.Parser&#45;&gt;sciurus.statement.Statement</title>
164
+ <path fill="none" stroke="black" d="M856.5,-537.34C856.5,-555.73 856.5,-574.11 856.5,-591.86"/>
165
+ <polygon fill="black" stroke="black" points="856.5,-592.03 860.5,-598.03 856.5,-604.03 852.5,-598.03 856.5,-592.03"/>
166
+ <text text-anchor="middle" x="902" y="-559.6" font-family="Times,serif" font-size="14.00" fill="green">_parsed_text</text>
167
+ </g>
168
+ <!-- sql_metadata.utils.UniqueList -->
169
+ <g id="node7" class="node">
170
+ <title>sql_metadata.utils.UniqueList</title>
171
+ <polygon fill="#44bb99" stroke="#44bb99" points="717.5,-0.5 717.5,-86.3 995.5,-86.3 995.5,-0.5 717.5,-0.5"/>
172
+ <text text-anchor="start" x="749" y="-71.1" font-family="Times,serif" font-size="14.00">sql_metadata.utils.UniqueList</text>
173
+ <polyline fill="none" stroke="#44bb99" points="717.5,-63.3 995.5,-63.3 "/>
174
+ <polyline fill="none" stroke="#44bb99" points="717.5,-38.5 995.5,-38.5 "/>
175
+ <text text-anchor="start" x="725.5" y="-23.3" font-family="Times,serif" font-size="14.00">append(item: Any): None</text>
176
+ <text text-anchor="start" x="725.5" y="-8.3" font-family="Times,serif" font-size="14.00">extend(items: Sequence[Any]): None</text>
177
+ </g>
178
+ <!-- sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser -->
179
+ <g id="edge4" class="edge">
180
+ <title>sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser</title>
181
+ <path fill="none" stroke="black" d="M717.35,-66.51C698.22,-75.43 680.92,-87.76 668.5,-104.8 630.25,-157.27 674.43,-213.93 729.54,-258.13"/>
182
+ <polygon fill="none" stroke="black" points="729.74,-258.28 736.93,-258.82 739.2,-265.67 732.01,-265.13 729.74,-258.28"/>
183
+ <text text-anchor="middle" x="702" y="-108.6" font-family="Times,serif" font-size="14.00" fill="green">_columns</text>
184
+ </g>
185
+ <!-- sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser -->
186
+ <g id="edge5" class="edge">
187
+ <title>sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser</title>
188
+ <path fill="none" stroke="black" d="M767.74,-86.71C759.86,-96.02 755.74,-107 758.5,-119.8 758.97,-121.98 759.46,-124.16 759.98,-126.35"/>
189
+ <polygon fill="none" stroke="black" points="760,-126.43 765.35,-131.27 762.94,-138.06 757.59,-133.23 760,-126.43"/>
190
+ <text text-anchor="middle" x="846" y="-108.6" font-family="Times,serif" font-size="14.00" fill="green">_columns_aliases_names</text>
191
+ </g>
192
+ <!-- sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser -->
193
+ <g id="edge6" class="edge">
194
+ <title>sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser</title>
195
+ <path fill="none" stroke="black" d="M921.07,-86.62C926.01,-92.16 930.3,-98.23 933.5,-104.8 936.9,-111.79 939.42,-118.97 941.17,-126.27"/>
196
+ <polygon fill="none" stroke="black" points="941.2,-126.44 946.21,-131.63 943.35,-138.25 938.34,-133.06 941.2,-126.44"/>
197
+ <text text-anchor="middle" x="983.5" y="-108.6" font-family="Times,serif" font-size="14.00" fill="green">_with_names</text>
198
+ </g>
199
+ <!-- sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser -->
200
+ <g id="edge7" class="edge">
201
+ <title>sql_metadata.utils.UniqueList&#45;&gt;sql_metadata.parser.Parser</title>
202
+ <path fill="none" stroke="black" d="M995.8,-86.4C1015.46,-93.57 1030.19,-100.18 1033.5,-104.8 1068.95,-154.35 1032.03,-208.55 982.91,-252.09"/>
203
+ <polygon fill="none" stroke="black" points="982.71,-252.27 980.77,-259.21 973.61,-260.09 975.55,-253.15 982.71,-252.27"/>
204
+ <text text-anchor="middle" x="1110" y="-108.6" font-family="Times,serif" font-size="14.00" fill="green">_subqueries_names</text>
205
+ </g>
206
+ </g>
207
+ </svg>