confluent-sql 0.1.0__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 (44) hide show
  1. confluent_sql-0.1.0/.github/CODEOWNERS +2 -0
  2. confluent_sql-0.1.0/.gitignore +220 -0
  3. confluent_sql-0.1.0/.semaphore/publish_to_codeartifact.yml +24 -0
  4. confluent_sql-0.1.0/.semaphore/publish_to_pypi.yml +25 -0
  5. confluent_sql-0.1.0/.semaphore/semaphore.yml +53 -0
  6. confluent_sql-0.1.0/ARCHITECTURE.md +386 -0
  7. confluent_sql-0.1.0/DBAPI_EXTENSIONS.md +869 -0
  8. confluent_sql-0.1.0/LICENSE.txt +203 -0
  9. confluent_sql-0.1.0/Makefile +111 -0
  10. confluent_sql-0.1.0/PKG-INFO +214 -0
  11. confluent_sql-0.1.0/README.md +190 -0
  12. confluent_sql-0.1.0/STREAMING.md +777 -0
  13. confluent_sql-0.1.0/TYPES.md +413 -0
  14. confluent_sql-0.1.0/examples/errors.py +36 -0
  15. confluent_sql-0.1.0/examples/simple_append_only_streaming_query_example.py +75 -0
  16. confluent_sql-0.1.0/examples/snapshot_mode_tuple_cursor_simple_example.py +51 -0
  17. confluent_sql-0.1.0/pyproject.toml +73 -0
  18. confluent_sql-0.1.0/service.yml +26 -0
  19. confluent_sql-0.1.0/src/confluent_sql/__init__.py +64 -0
  20. confluent_sql-0.1.0/src/confluent_sql/__version__.py +10 -0
  21. confluent_sql-0.1.0/src/confluent_sql/changelog_compressor.py +603 -0
  22. confluent_sql-0.1.0/src/confluent_sql/connection.py +1007 -0
  23. confluent_sql-0.1.0/src/confluent_sql/cursor.py +804 -0
  24. confluent_sql-0.1.0/src/confluent_sql/exceptions.py +209 -0
  25. confluent_sql-0.1.0/src/confluent_sql/execution_mode.py +34 -0
  26. confluent_sql-0.1.0/src/confluent_sql/result_readers.py +663 -0
  27. confluent_sql-0.1.0/src/confluent_sql/statement.py +566 -0
  28. confluent_sql-0.1.0/src/confluent_sql/types.py +1606 -0
  29. confluent_sql-0.1.0/tests/__init__.py +5 -0
  30. confluent_sql-0.1.0/tests/conftest.py +100 -0
  31. confluent_sql-0.1.0/tests/integration/conftest.py +329 -0
  32. confluent_sql-0.1.0/tests/integration/test_connection.py +174 -0
  33. confluent_sql-0.1.0/tests/integration/test_cursor.py +831 -0
  34. confluent_sql-0.1.0/tests/integration/test_fetch.py +900 -0
  35. confluent_sql-0.1.0/tests/unit/conftest.py +232 -0
  36. confluent_sql-0.1.0/tests/unit/test_changelog_compressor_unit.py +1968 -0
  37. confluent_sql-0.1.0/tests/unit/test_changelog_unit.py +898 -0
  38. confluent_sql-0.1.0/tests/unit/test_connection_unit.py +957 -0
  39. confluent_sql-0.1.0/tests/unit/test_cursor_unit.py +1735 -0
  40. confluent_sql-0.1.0/tests/unit/test_execution_mode_unit.py +42 -0
  41. confluent_sql-0.1.0/tests/unit/test_result_readers_unit.py +357 -0
  42. confluent_sql-0.1.0/tests/unit/test_statement_unit.py +1030 -0
  43. confluent_sql-0.1.0/tests/unit/test_types_unit.py +2021 -0
  44. confluent_sql-0.1.0/uv.lock +439 -0
@@ -0,0 +1,2 @@
1
+ * @confluentinc/flink-sql
2
+ * @confluentinc/pyflink
@@ -0,0 +1,220 @@
1
+ pep-0249.rst
2
+ /mk-include
3
+ /.mk-include-timestamp
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[codz]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py.cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+ test-results.xml
57
+
58
+ # Translations
59
+ *.mo
60
+ *.pot
61
+
62
+ # Django stuff:
63
+ *.log
64
+ local_settings.py
65
+ db.sqlite3
66
+ db.sqlite3-journal
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+
78
+ # PyBuilder
79
+ .pybuilder/
80
+ target/
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # IPython
86
+ profile_default/
87
+ ipython_config.py
88
+
89
+ # pyenv
90
+ # For a library or package, you might want to ignore these files since the code is
91
+ # intended to run in multiple environments; otherwise, check them in:
92
+ # .python-version
93
+
94
+ # pipenv
95
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
97
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
98
+ # install all needed dependencies.
99
+ #Pipfile.lock
100
+
101
+ # UV
102
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
103
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
104
+ # commonly ignored for libraries.
105
+ #uv.lock
106
+
107
+ # poetry
108
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
109
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
110
+ # commonly ignored for libraries.
111
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
112
+ #poetry.lock
113
+ #poetry.toml
114
+
115
+ # pdm
116
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
117
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
118
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
119
+ #pdm.lock
120
+ #pdm.toml
121
+ .pdm-python
122
+ .pdm-build/
123
+
124
+ # pixi
125
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
126
+ #pixi.lock
127
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
128
+ # in the .venv directory. It is recommended not to include this directory in version control.
129
+ .pixi
130
+
131
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
132
+ __pypackages__/
133
+
134
+ # Celery stuff
135
+ celerybeat-schedule
136
+ celerybeat.pid
137
+
138
+ # SageMath parsed files
139
+ *.sage.py
140
+
141
+ # Environments
142
+ .env
143
+ .envrc
144
+ .venv
145
+ env/
146
+ venv/
147
+ ENV/
148
+ env.bak/
149
+ venv.bak/
150
+
151
+ # Spyder project settings
152
+ .spyderproject
153
+ .spyproject
154
+
155
+ # Rope project settings
156
+ .ropeproject
157
+
158
+ # mkdocs documentation
159
+ /site
160
+
161
+ # mypy
162
+ .mypy_cache/
163
+ .dmypy.json
164
+ dmypy.json
165
+
166
+ # Pyre type checker
167
+ .pyre/
168
+
169
+ # pytype static type analyzer
170
+ .pytype/
171
+
172
+ # Cython debug symbols
173
+ cython_debug/
174
+
175
+ # PyCharm
176
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
177
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
178
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
179
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
180
+ #.idea/
181
+
182
+ # Abstra
183
+ # Abstra is an AI-powered process automation framework.
184
+ # Ignore directories containing user credentials, local state, and settings.
185
+ # Learn more at https://abstra.io/docs
186
+ .abstra/
187
+
188
+ # Visual Studio Code
189
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
190
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
191
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
192
+ # you could uncomment the following to ignore the entire vscode folder
193
+ # .vscode/
194
+
195
+ # Ruff stuff:
196
+ .ruff_cache/
197
+
198
+ # PyPI configuration file
199
+ .pypirc
200
+
201
+ # Cursor
202
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
203
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
204
+ # refer to https://docs.cursor.com/context/ignore-files
205
+ .cursorignore
206
+ .cursorindexingignore
207
+
208
+ # Marimo
209
+ marimo/_static/
210
+ marimo/_lsp/
211
+ __marimo__/
212
+
213
+ # OSX finder files
214
+ .DS_Store
215
+
216
+ # Environment variable files
217
+ *.env
218
+
219
+ # vscode settings
220
+ .vscode/settings.json
@@ -0,0 +1,24 @@
1
+ version: v1.0
2
+ name: Publish `confluent_sql` to Codeartifact
3
+ agent:
4
+ machine:
5
+ type: s1-prod-ubuntu24-04-arm64-00
6
+
7
+ global_job_config:
8
+ prologue:
9
+ commands:
10
+ - checkout
11
+ - . vault-setup
12
+ - curl -LsSf https://astral.sh/uv/0.10.11/install.sh | sh
13
+ - uv sync
14
+
15
+ blocks:
16
+ - name: Publish `confluent_sql` to codeartifact
17
+ task:
18
+ jobs:
19
+ - name: Publish `confluent_sql` to codeartifact
20
+ commands:
21
+ - export VERSION=$(grep '^version' pyproject.toml | cut -d'"' -f2)
22
+ - echo "Publishing confluent-sql $VERSION to Codeartifact"
23
+ - uv build
24
+ - uv publish --index codeartifact dist/*
@@ -0,0 +1,25 @@
1
+ version: v1.0
2
+ name: Publish `confluent_sql` to PyPi
3
+ agent:
4
+ machine:
5
+ type: s1-prod-ubuntu24-04-arm64-00
6
+
7
+ global_job_config:
8
+ prologue:
9
+ commands:
10
+ - checkout
11
+ - . vault-setup
12
+ - curl -LsSf https://astral.sh/uv/0.10.11/install.sh | sh
13
+ - uv sync
14
+
15
+ blocks:
16
+ - name: Publish `confluent_sql` to PyPi
17
+ task:
18
+ jobs:
19
+ - name: Publish `confluent_sql` to PyPi
20
+ commands:
21
+ - export VERSION=$(grep '^version' pyproject.toml | cut -d'"' -f2)
22
+ - echo "Publishing confluent-sql $VERSION to PyPi"
23
+ - uv build
24
+ - CONFLUENT_SQL_KEY=$(vault kv get -field=confluent-sql v1/ci/kv/pypi/pypi.org)
25
+ - uv publish -u __token__ -p "$CONFLUENT_SQL_KEY" dist/*
@@ -0,0 +1,53 @@
1
+ version: v1.0
2
+ name: build-test-release
3
+ agent:
4
+ machine:
5
+ type: s1-prod-ubuntu24-04-arm64-00
6
+
7
+ auto_cancel:
8
+ running:
9
+ when: "branch != 'main'"
10
+
11
+ execution_time_limit:
12
+ hours: 1
13
+
14
+ queue:
15
+ - when: "branch != 'main'"
16
+ processing: parallel
17
+
18
+ global_job_config:
19
+ prologue:
20
+ commands:
21
+ - checkout
22
+ - . vault-setup
23
+ - curl -LsSf https://astral.sh/uv/0.10.11/install.sh | sh
24
+ - uv sync
25
+ - export VERSION=$(grep '^version' pyproject.toml | cut -d'"' -f2)
26
+
27
+ blocks:
28
+ - name: "Test"
29
+ dependencies: []
30
+ task:
31
+ jobs:
32
+ - name: "Lint, Type Check, and Test"
33
+ commands:
34
+ - uv run ruff check && uv run pyright && uv run pytest -m unit --junitxml=test-results.xml
35
+ epilogue:
36
+ always:
37
+ commands:
38
+ - "[[ -f test-results.xml ]] && test-results publish test-results.xml"
39
+
40
+ promotions:
41
+ - name: Publish confluent-sql to codeartifact
42
+ pipeline_file: publish_to_codeartifact.yml
43
+ auto_promote:
44
+ when: "result = 'passed' and tag =~ '^v\\.'"
45
+ - name: Publish confluent-sql to PyPi
46
+ pipeline_file: publish_to_pypi.yml
47
+
48
+ after_pipeline:
49
+ task:
50
+ jobs:
51
+ - name: Publish CICD Results to Semaphore
52
+ commands:
53
+ - test-results gen-pipeline-report || echo "Could not publish pipeline test result report. Are there any test results to publish?"