t-sql 1.0.0__tar.gz → 1.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 (33) hide show
  1. t_sql-1.1.0/.dockerignore +128 -0
  2. t_sql-1.1.0/.github/workflows/publish.yml +28 -0
  3. t_sql-1.1.0/.github/workflows/test.yml +31 -0
  4. t_sql-1.1.0/.gitignore +177 -0
  5. t_sql-1.1.0/Dockerfile +8 -0
  6. t_sql-1.1.0/PKG-INFO +425 -0
  7. t_sql-1.1.0/README.md +414 -0
  8. t_sql-1.1.0/compose.yaml +14 -0
  9. {t_sql-1.0.0 → t_sql-1.1.0}/pyproject.toml +12 -1
  10. t_sql-1.1.0/pytest.ini +2 -0
  11. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_helper_functions.py +40 -4
  12. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_injections_for_escaped.py +14 -20
  13. t_sql-1.1.0/tests/test_query_builder.py +390 -0
  14. t_sql-1.1.0/tests/test_sqlalchemy_integration.py +245 -0
  15. {t_sql-1.0.0 → t_sql-1.1.0}/tsql/__init__.py +3 -3
  16. t_sql-1.1.0/tsql/query_builder.py +381 -0
  17. t_sql-1.0.0/PKG-INFO +0 -183
  18. t_sql-1.0.0/README.md +0 -173
  19. t_sql-1.0.0/setup.cfg +0 -4
  20. t_sql-1.0.0/t_sql.egg-info/PKG-INFO +0 -183
  21. t_sql-1.0.0/t_sql.egg-info/SOURCES.txt +0 -19
  22. t_sql-1.0.0/t_sql.egg-info/dependency_links.txt +0 -1
  23. t_sql-1.0.0/t_sql.egg-info/top_level.txt +0 -1
  24. {t_sql-1.0.0 → t_sql-1.1.0}/LICENSE +0 -0
  25. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_asyncpg_integration.py +0 -0
  26. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_different_object_types.py +0 -0
  27. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_escaped.py +0 -0
  28. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_escaped_binary_hex.py +0 -0
  29. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_injection_edge_cases.py +0 -0
  30. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_injection_protection_validation.py +0 -0
  31. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_styles.py +0 -0
  32. {t_sql-1.0.0 → t_sql-1.1.0}/tests/test_tsql.py +0 -0
  33. {t_sql-1.0.0 → t_sql-1.1.0}/tsql/styles.py +0 -0
@@ -0,0 +1,128 @@
1
+ .git
2
+ .venv
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
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
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+
94
+ # Environments
95
+ .env
96
+ .venv
97
+ env/
98
+ venv/
99
+ ENV/
100
+ env.bak/
101
+ venv.bak/
102
+
103
+ # mypy
104
+ .mypy_cache/
105
+ .dmypy.json
106
+ dmypy.json
107
+
108
+ # Pyre type checker
109
+ .pyre/
110
+
111
+ # pytype static type analyzer
112
+ .pytype/
113
+
114
+ # Cython debug symbols
115
+ cython_debug/
116
+
117
+ # PyCharm
118
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
119
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
120
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
121
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
122
+ #.idea/
123
+
124
+ # Ruff stuff:
125
+ .ruff_cache/
126
+
127
+ # PyPI configuration file
128
+ .pypirc
@@ -0,0 +1,28 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
+
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.14"
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v4
23
+
24
+ - name: Build package
25
+ run: uv build
26
+
27
+ - name: Publish to PyPI
28
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,31 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.14"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v4
26
+
27
+ - name: Install dependencies
28
+ run: uv sync
29
+
30
+ - name: Run tests
31
+ run: uv run pytest -v
t_sql-1.1.0/.gitignore ADDED
@@ -0,0 +1,177 @@
1
+ # ai
2
+ .claude/
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
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
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # UV
101
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ uv.lock
105
+
106
+ # poetry
107
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
108
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
109
+ # commonly ignored for libraries.
110
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
111
+ #poetry.lock
112
+
113
+ # pdm
114
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115
+ #pdm.lock
116
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
117
+ # in version control.
118
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
119
+ .pdm.toml
120
+ .pdm-python
121
+ .pdm-build/
122
+
123
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
124
+ __pypackages__/
125
+
126
+ # Celery stuff
127
+ celerybeat-schedule
128
+ celerybeat.pid
129
+
130
+ # SageMath parsed files
131
+ *.sage.py
132
+
133
+ # Environments
134
+ .env
135
+ .venv
136
+ env/
137
+ venv/
138
+ ENV/
139
+ env.bak/
140
+ venv.bak/
141
+
142
+ # Spyder project settings
143
+ .spyderproject
144
+ .spyproject
145
+
146
+ # Rope project settings
147
+ .ropeproject
148
+
149
+ # mkdocs documentation
150
+ /site
151
+
152
+ # mypy
153
+ .mypy_cache/
154
+ .dmypy.json
155
+ dmypy.json
156
+
157
+ # Pyre type checker
158
+ .pyre/
159
+
160
+ # pytype static type analyzer
161
+ .pytype/
162
+
163
+ # Cython debug symbols
164
+ cython_debug/
165
+
166
+ # PyCharm
167
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
168
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
169
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
170
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
171
+ #.idea/
172
+
173
+ # Ruff stuff:
174
+ .ruff_cache/
175
+
176
+ # PyPI configuration file
177
+ .pypirc
t_sql-1.1.0/Dockerfile ADDED
@@ -0,0 +1,8 @@
1
+ FROM python:3.14-rc-alpine3.21
2
+ ENV PYTHONPATH='.'
3
+
4
+ RUN pip install pytest
5
+
6
+ WORKDIR '/data/'
7
+ COPY . .
8
+ CMD ["pytest"]