pgjinja 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.
- pgjinja-0.1.0/.envrc +1 -0
- pgjinja-0.1.0/.gitignore +187 -0
- pgjinja-0.1.0/.idea/.gitignore +8 -0
- pgjinja-0.1.0/.idea/inspectionProfiles/Project_Default.xml +104 -0
- pgjinja-0.1.0/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- pgjinja-0.1.0/.idea/misc.xml +59 -0
- pgjinja-0.1.0/.idea/modules.xml +8 -0
- pgjinja-0.1.0/.idea/pgjinja.iml +10 -0
- pgjinja-0.1.0/.idea/vcs.xml +6 -0
- pgjinja-0.1.0/.idea/workspace.xml +178 -0
- pgjinja-0.1.0/.python-version +1 -0
- pgjinja-0.1.0/LICENSE +21 -0
- pgjinja-0.1.0/MANIFEST.in +18 -0
- pgjinja-0.1.0/Makefile +82 -0
- pgjinja-0.1.0/PKG-INFO +161 -0
- pgjinja-0.1.0/README.md +129 -0
- pgjinja-0.1.0/examples/merchant_example.py +83 -0
- pgjinja-0.1.0/main.py +41 -0
- pgjinja-0.1.0/py.typed +2 -0
- pgjinja-0.1.0/pyproject.toml +51 -0
- pgjinja-0.1.0/requirements-dev.txt +28 -0
- pgjinja-0.1.0/setup.cfg +37 -0
- pgjinja-0.1.0/src/__init__.py +0 -0
- pgjinja-0.1.0/src/pgjinja/__init__.py +24 -0
- pgjinja-0.1.0/src/pgjinja/main.py +83 -0
- pgjinja-0.1.0/src/pgjinja/postgres.py +74 -0
- pgjinja-0.1.0/template/select_merchant.sql.jinja +5 -0
- pgjinja-0.1.0/tests/__init__.py +4 -0
- pgjinja-0.1.0/tests/test_merchant.py +95 -0
- pgjinja-0.1.0/uv.lock +273 -0
pgjinja-0.1.0/.envrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
source .venv/bin/activate
|
pgjinja-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
175
|
+
|
|
176
|
+
# Virtual environments
|
|
177
|
+
.venv/
|
|
178
|
+
.env/
|
|
179
|
+
|
|
180
|
+
# VS Code
|
|
181
|
+
.vscode/
|
|
182
|
+
|
|
183
|
+
# Pytest
|
|
184
|
+
.pytest_cache/
|
|
185
|
+
|
|
186
|
+
# Coverage reports
|
|
187
|
+
htmlcov/
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false">
|
|
5
|
+
<Languages>
|
|
6
|
+
<language minSize="76" name="Python" />
|
|
7
|
+
</Languages>
|
|
8
|
+
</inspection_tool>
|
|
9
|
+
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
10
|
+
<inspection_tool class="HttpUrlsUsage" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
11
|
+
<option name="ignoredUrls">
|
|
12
|
+
<list>
|
|
13
|
+
<option value="http://localhost" />
|
|
14
|
+
<option value="http://127.0.0.1" />
|
|
15
|
+
<option value="http://0.0.0.0" />
|
|
16
|
+
<option value="http://www.w3.org/" />
|
|
17
|
+
<option value="http://json-schema.org/draft" />
|
|
18
|
+
<option value="http://java.sun.com/" />
|
|
19
|
+
<option value="http://xmlns.jcp.org/" />
|
|
20
|
+
<option value="http://javafx.com/javafx/" />
|
|
21
|
+
<option value="http://javafx.com/fxml" />
|
|
22
|
+
<option value="http://maven.apache.org/xsd/" />
|
|
23
|
+
<option value="http://maven.apache.org/POM/" />
|
|
24
|
+
<option value="http://www.springframework.org/schema/" />
|
|
25
|
+
<option value="http://www.springframework.org/tags" />
|
|
26
|
+
<option value="http://www.springframework.org/security/tags" />
|
|
27
|
+
<option value="http://www.thymeleaf.org" />
|
|
28
|
+
<option value="http://www.jboss.org/j2ee/schema/" />
|
|
29
|
+
<option value="http://www.jboss.com/xml/ns/" />
|
|
30
|
+
<option value="http://www.ibm.com/webservices/xsd" />
|
|
31
|
+
<option value="http://activemq.apache.org/schema/" />
|
|
32
|
+
<option value="http://schema.cloudfoundry.org/spring/" />
|
|
33
|
+
<option value="http://schemas.xmlsoap.org/" />
|
|
34
|
+
<option value="http://cxf.apache.org/schemas/" />
|
|
35
|
+
<option value="http://primefaces.org/ui" />
|
|
36
|
+
<option value="http://tiles.apache.org/" />
|
|
37
|
+
<option value="http://norvig.com" />
|
|
38
|
+
<option value="http://wr.ai" />
|
|
39
|
+
<option value="http://" />
|
|
40
|
+
</list>
|
|
41
|
+
</option>
|
|
42
|
+
</inspection_tool>
|
|
43
|
+
<inspection_tool class="PyNestedDecoratorsInspection" enabled="true" level="INFORMATION" enabled_by_default="true" />
|
|
44
|
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
45
|
+
<option name="ignoredPackages">
|
|
46
|
+
<value>
|
|
47
|
+
<list size="15">
|
|
48
|
+
<item index="0" class="java.lang.String" itemvalue="pandas" />
|
|
49
|
+
<item index="1" class="java.lang.String" itemvalue="pyyaml" />
|
|
50
|
+
<item index="2" class="java.lang.String" itemvalue="pydantic" />
|
|
51
|
+
<item index="3" class="java.lang.String" itemvalue="openpyxl" />
|
|
52
|
+
<item index="4" class="java.lang.String" itemvalue="transformers" />
|
|
53
|
+
<item index="5" class="java.lang.String" itemvalue="scikit-learn" />
|
|
54
|
+
<item index="6" class="java.lang.String" itemvalue="sentence-transformers" />
|
|
55
|
+
<item index="7" class="java.lang.String" itemvalue="tqdm" />
|
|
56
|
+
<item index="8" class="java.lang.String" itemvalue="openai" />
|
|
57
|
+
<item index="9" class="java.lang.String" itemvalue="Unidecode" />
|
|
58
|
+
<item index="10" class="java.lang.String" itemvalue="fastapi" />
|
|
59
|
+
<item index="11" class="java.lang.String" itemvalue="uvicorn" />
|
|
60
|
+
<item index="12" class="java.lang.String" itemvalue="fastapi-users" />
|
|
61
|
+
<item index="13" class="java.lang.String" itemvalue="aiosqlite" />
|
|
62
|
+
<item index="14" class="java.lang.String" itemvalue="pikepdf" />
|
|
63
|
+
</list>
|
|
64
|
+
</value>
|
|
65
|
+
</option>
|
|
66
|
+
</inspection_tool>
|
|
67
|
+
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
68
|
+
<option name="ignoredErrors">
|
|
69
|
+
<list>
|
|
70
|
+
<option value="E722" />
|
|
71
|
+
<option value="E402" />
|
|
72
|
+
<option value="E712" />
|
|
73
|
+
<option value="E501" />
|
|
74
|
+
<option value="E203" />
|
|
75
|
+
</list>
|
|
76
|
+
</option>
|
|
77
|
+
</inspection_tool>
|
|
78
|
+
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
79
|
+
<option name="ignoredErrors">
|
|
80
|
+
<list>
|
|
81
|
+
<option value="N802" />
|
|
82
|
+
<option value="N812" />
|
|
83
|
+
<option value="N806" />
|
|
84
|
+
<option value="N803" />
|
|
85
|
+
</list>
|
|
86
|
+
</option>
|
|
87
|
+
</inspection_tool>
|
|
88
|
+
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
89
|
+
<option name="ignoredIdentifiers">
|
|
90
|
+
<list>
|
|
91
|
+
<option value="document_reader.utils.structuring.node.Node.find_up" />
|
|
92
|
+
<option value="list.__await__" />
|
|
93
|
+
<option value="str.value" />
|
|
94
|
+
<option value="dict.union" />
|
|
95
|
+
<option value="pymongo.results.DeleteResult.__await__" />
|
|
96
|
+
</list>
|
|
97
|
+
</option>
|
|
98
|
+
</inspection_tool>
|
|
99
|
+
<inspection_tool class="ShellCheck" enabled="true" level="ERROR" enabled_by_default="true">
|
|
100
|
+
<shellcheck_settings value="SC2034" />
|
|
101
|
+
</inspection_tool>
|
|
102
|
+
<inspection_tool class="Stylelint" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
103
|
+
</profile>
|
|
104
|
+
</component>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="cmdArguments" value="--line-length 120" />
|
|
5
|
+
<option name="enabledOnReformat" value="true" />
|
|
6
|
+
<option name="enabledOnSave" value="true" />
|
|
7
|
+
<option name="pathToExecutable" value="/opt/homebrew/bin/black" />
|
|
8
|
+
<option name="sdkName" value="uv (pgjinja)" />
|
|
9
|
+
</component>
|
|
10
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
|
11
|
+
<entry key="Project Default">
|
|
12
|
+
<profile-state>
|
|
13
|
+
<expanded-state>
|
|
14
|
+
<State />
|
|
15
|
+
<State>
|
|
16
|
+
<id>Angular</id>
|
|
17
|
+
</State>
|
|
18
|
+
<State>
|
|
19
|
+
<id>CSS</id>
|
|
20
|
+
</State>
|
|
21
|
+
<State>
|
|
22
|
+
<id>Dockerfile</id>
|
|
23
|
+
</State>
|
|
24
|
+
<State>
|
|
25
|
+
<id>EditorConfig</id>
|
|
26
|
+
</State>
|
|
27
|
+
<State>
|
|
28
|
+
<id>File Watchers</id>
|
|
29
|
+
</State>
|
|
30
|
+
<State>
|
|
31
|
+
<id>GeneralJavaScript and TypeScript</id>
|
|
32
|
+
</State>
|
|
33
|
+
<State>
|
|
34
|
+
<id>JSON and JSON5</id>
|
|
35
|
+
</State>
|
|
36
|
+
<State>
|
|
37
|
+
<id>JavaScript and TypeScript</id>
|
|
38
|
+
</State>
|
|
39
|
+
<State>
|
|
40
|
+
<id>Potentially undesirable code constructsJavaScript and TypeScript</id>
|
|
41
|
+
</State>
|
|
42
|
+
<State>
|
|
43
|
+
<id>Probable bugsCSS</id>
|
|
44
|
+
</State>
|
|
45
|
+
<State>
|
|
46
|
+
<id>Probable bugsJavaScript and TypeScript</id>
|
|
47
|
+
</State>
|
|
48
|
+
<State>
|
|
49
|
+
<id>Pyramid</id>
|
|
50
|
+
</State>
|
|
51
|
+
<State>
|
|
52
|
+
<id>Python</id>
|
|
53
|
+
</State>
|
|
54
|
+
</expanded-state>
|
|
55
|
+
</profile-state>
|
|
56
|
+
</entry>
|
|
57
|
+
</component>
|
|
58
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="uv (pgjinja)" project-jdk-type="Python SDK" />
|
|
59
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
|
6
|
+
</content>
|
|
7
|
+
<orderEntry type="jdk" jdkName="uv (pgjinja)" jdkType="Python SDK" />
|
|
8
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
9
|
+
</component>
|
|
10
|
+
</module>
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="AutoImportSettings">
|
|
4
|
+
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ChangeListManager">
|
|
7
|
+
<list default="true" id="982f88b4-8bbe-4cc8-add8-dec7d24d3c47" name="Changes" comment="">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/ src/pgjinja/__init__.py" beforeDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/Makefile" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/src/pgjinja/postgres.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/pgjinja/postgres.py" afterDir="false" />
|
|
12
|
+
<change beforePath="$PROJECT_DIR$/template/sample_template.jinja.sql" beforeDir="false" />
|
|
13
|
+
</list>
|
|
14
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
15
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
16
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
17
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
18
|
+
</component>
|
|
19
|
+
<component name="FileTemplateManagerImpl">
|
|
20
|
+
<option name="RECENT_TEMPLATES">
|
|
21
|
+
<list>
|
|
22
|
+
<option value="Python Script" />
|
|
23
|
+
</list>
|
|
24
|
+
</option>
|
|
25
|
+
</component>
|
|
26
|
+
<component name="Git.Settings">
|
|
27
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
28
|
+
</component>
|
|
29
|
+
<component name="GitRewordedCommitMessages">
|
|
30
|
+
<option name="commitMessagesMapping">
|
|
31
|
+
<RewordedCommitMessageMapping>
|
|
32
|
+
<option name="originalMessage" value="Update README.md for improved readability The README.md file was modified to enhance readability by adjusting line breaks in the project description. This change ensures that the text is more accessible and easier to read, especially in environments with limited line width." />
|
|
33
|
+
<option name="rewordedMessage" value="The README.md has been enhanced for better readability and clarity of code examples, and expanded with comprehensive instructions for asynchronous database interactions using the pgjinja package." />
|
|
34
|
+
</RewordedCommitMessageMapping>
|
|
35
|
+
</option>
|
|
36
|
+
<option name="currentCommit" value="1" />
|
|
37
|
+
<option name="onto" value="ec084a303c2ed2c0dfc58c9657a1e19b8b0f0dea" />
|
|
38
|
+
</component>
|
|
39
|
+
<component name="ProjectColorInfo">{
|
|
40
|
+
"associatedIndex": 8
|
|
41
|
+
}</component>
|
|
42
|
+
<component name="ProjectId" id="2uodlmO5R9BvLe1BdXv9mTAhznK" />
|
|
43
|
+
<component name="ProjectViewState">
|
|
44
|
+
<option name="autoscrollFromSource" value="true" />
|
|
45
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
46
|
+
<option name="showLibraryContents" value="true" />
|
|
47
|
+
</component>
|
|
48
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
49
|
+
"keyToString": {
|
|
50
|
+
"Python.main.executor": "Debug",
|
|
51
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
52
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
53
|
+
"node.js.detected.package.eslint": "true",
|
|
54
|
+
"node.js.detected.package.stylelint": "true",
|
|
55
|
+
"node.js.detected.package.tslint": "true",
|
|
56
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
57
|
+
"node.js.selected.package.stylelint": "",
|
|
58
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
59
|
+
"nodejs_package_manager_path": "npm",
|
|
60
|
+
"settings.editor.selected.configurable": "com.jetbrains.python.black.configuration.BlackFormatterConfigurable",
|
|
61
|
+
"vue.rearranger.settings.migration": "true"
|
|
62
|
+
}
|
|
63
|
+
}]]></component>
|
|
64
|
+
<component name="RecentsManager">
|
|
65
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
66
|
+
<recent name="$PROJECT_DIR$/data" />
|
|
67
|
+
</key>
|
|
68
|
+
</component>
|
|
69
|
+
<component name="RunManager">
|
|
70
|
+
<configuration name="main" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
71
|
+
<module name="pgjinja" />
|
|
72
|
+
<option name="ENV_FILES" value="" />
|
|
73
|
+
<option name="INTERPRETER_OPTIONS" value="" />
|
|
74
|
+
<option name="PARENT_ENVS" value="true" />
|
|
75
|
+
<envs>
|
|
76
|
+
<env name="PYTHONUNBUFFERED" value="1" />
|
|
77
|
+
</envs>
|
|
78
|
+
<option name="SDK_HOME" value="" />
|
|
79
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
80
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
81
|
+
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
82
|
+
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
83
|
+
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
84
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
|
85
|
+
<option name="PARAMETERS" value="" />
|
|
86
|
+
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
87
|
+
<option name="EMULATE_TERMINAL" value="false" />
|
|
88
|
+
<option name="MODULE_MODE" value="false" />
|
|
89
|
+
<option name="REDIRECT_INPUT" value="false" />
|
|
90
|
+
<option name="INPUT_FILE" value="" />
|
|
91
|
+
<method v="2" />
|
|
92
|
+
</configuration>
|
|
93
|
+
<recent_temporary>
|
|
94
|
+
<list>
|
|
95
|
+
<item itemvalue="Python.main" />
|
|
96
|
+
</list>
|
|
97
|
+
</recent_temporary>
|
|
98
|
+
</component>
|
|
99
|
+
<component name="SharedIndexes">
|
|
100
|
+
<attachedChunks>
|
|
101
|
+
<set>
|
|
102
|
+
<option value="bundled-js-predefined-d6986cc7102b-1632447f56bf-JavaScript-PY-243.26053.29" />
|
|
103
|
+
<option value="bundled-python-sdk-b1dbf8ef85a6-4df51de95216-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-243.26053.29" />
|
|
104
|
+
</set>
|
|
105
|
+
</attachedChunks>
|
|
106
|
+
</component>
|
|
107
|
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
108
|
+
<component name="TaskManager">
|
|
109
|
+
<task active="true" id="Default" summary="Default task">
|
|
110
|
+
<changelist id="982f88b4-8bbe-4cc8-add8-dec7d24d3c47" name="Changes" comment="" />
|
|
111
|
+
<created>1742919014228</created>
|
|
112
|
+
<option name="number" value="Default" />
|
|
113
|
+
<option name="presentableId" value="Default" />
|
|
114
|
+
<updated>1742919014228</updated>
|
|
115
|
+
<workItem from="1742919015447" duration="3736000" />
|
|
116
|
+
<workItem from="1742922911542" duration="6707000" />
|
|
117
|
+
</task>
|
|
118
|
+
<task id="LOCAL-00001" summary="Update README.md for improved readability The README.md file was modified to enhance readability by adjusting line breaks in the project description. This change ensures that the text is more accessible and easier to read, especially in environments with limited line width.">
|
|
119
|
+
<option name="closed" value="true" />
|
|
120
|
+
<created>1742919039422</created>
|
|
121
|
+
<option name="number" value="00001" />
|
|
122
|
+
<option name="presentableId" value="LOCAL-00001" />
|
|
123
|
+
<option name="project" value="LOCAL" />
|
|
124
|
+
<updated>1742919039422</updated>
|
|
125
|
+
</task>
|
|
126
|
+
<task id="LOCAL-00002" summary="Enhance README and add async database interaction The README.md file has been expanded to include detailed usage instructions, installation steps, and configuration options for the pgjinja package. This update aims to provide users with a comprehensive guide on how to leverage the package's capabilities for asynchronous database operations using PostgreSQL, Jinja2 templates, and Pydantic models. Additionally, new files and code examples have been added to demonstrate the package's functionality, including a sample SQL template and an asynchronous query execution setup.">
|
|
127
|
+
<option name="closed" value="true" />
|
|
128
|
+
<created>1742926586913</created>
|
|
129
|
+
<option name="number" value="00002" />
|
|
130
|
+
<option name="presentableId" value="LOCAL-00002" />
|
|
131
|
+
<option name="project" value="LOCAL" />
|
|
132
|
+
<updated>1742926586913</updated>
|
|
133
|
+
</task>
|
|
134
|
+
<task id="LOCAL-00003" summary="Improve README code examples for clarity The README.md file has been updated to enhance the clarity and readability of the code examples. Import statements were reordered for better organization, and additional comments were added to guide users on extending database operations. These changes aim to provide a clearer understanding of the code structure and usage.">
|
|
135
|
+
<option name="closed" value="true" />
|
|
136
|
+
<created>1742927015822</created>
|
|
137
|
+
<option name="number" value="00003" />
|
|
138
|
+
<option name="presentableId" value="LOCAL-00003" />
|
|
139
|
+
<option name="project" value="LOCAL" />
|
|
140
|
+
<updated>1742927015822</updated>
|
|
141
|
+
</task>
|
|
142
|
+
<task id="LOCAL-00004" summary="Refactor SQL query in select_merchant.sql.jinja and update .gitignore and pyproject.toml for improved project structure and dependencies">
|
|
143
|
+
<option name="closed" value="true" />
|
|
144
|
+
<created>1742928041546</created>
|
|
145
|
+
<option name="number" value="00004" />
|
|
146
|
+
<option name="presentableId" value="LOCAL-00004" />
|
|
147
|
+
<option name="project" value="LOCAL" />
|
|
148
|
+
<updated>1742928041546</updated>
|
|
149
|
+
</task>
|
|
150
|
+
<option name="localTasksCounter" value="5" />
|
|
151
|
+
<servers />
|
|
152
|
+
</component>
|
|
153
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
154
|
+
<option name="version" value="3" />
|
|
155
|
+
</component>
|
|
156
|
+
<component name="Vcs.Log.Tabs.Properties">
|
|
157
|
+
<option name="TAB_STATES">
|
|
158
|
+
<map>
|
|
159
|
+
<entry key="MAIN">
|
|
160
|
+
<value>
|
|
161
|
+
<State />
|
|
162
|
+
</value>
|
|
163
|
+
</entry>
|
|
164
|
+
</map>
|
|
165
|
+
</option>
|
|
166
|
+
</component>
|
|
167
|
+
<component name="VcsManagerConfiguration">
|
|
168
|
+
<MESSAGE value="Update README.md for improved readability The README.md file was modified to enhance readability by adjusting line breaks in the project description. This change ensures that the text is more accessible and easier to read, especially in environments with limited line width." />
|
|
169
|
+
<MESSAGE value="Enhance README and add async database interaction The README.md file has been expanded to include detailed usage instructions, installation steps, and configuration options for the pgjinja package. This update aims to provide users with a comprehensive guide on how to leverage the package's capabilities for asynchronous database operations using PostgreSQL, Jinja2 templates, and Pydantic models. Additionally, new files and code examples have been added to demonstrate the package's functionality, including a sample SQL template and an asynchronous query execution setup." />
|
|
170
|
+
<MESSAGE value="Improve README code examples for clarity The README.md file has been updated to enhance the clarity and readability of the code examples. Import statements were reordered for better organization, and additional comments were added to guide users on extending database operations. These changes aim to provide a clearer understanding of the code structure and usage." />
|
|
171
|
+
<MESSAGE value="The README.md has been enhanced for better readability and clarity of code examples, and expanded with comprehensive instructions for asynchronous database interactions using the pgjinja package." />
|
|
172
|
+
<MESSAGE value="Refactor SQL query in select_merchant.sql.jinja and update .gitignore and pyproject.toml for improved project structure and dependencies" />
|
|
173
|
+
<option name="LAST_COMMIT_MESSAGE" value="Refactor SQL query in select_merchant.sql.jinja and update .gitignore and pyproject.toml for improved project structure and dependencies" />
|
|
174
|
+
</component>
|
|
175
|
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
|
176
|
+
<SUITE FILE_PATH="coverage/pgjinja$main.coverage" NAME="main Coverage Results" MODIFIED="1742925284357" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
|
177
|
+
</component>
|
|
178
|
+
</project>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
pgjinja-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Shawn
|
|
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.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Include all template files
|
|
2
|
+
include src/pgjinja/templates/*.sql.jinja
|
|
3
|
+
include src/pgjinja/templates/**/*.sql.jinja
|
|
4
|
+
|
|
5
|
+
# Include documentation
|
|
6
|
+
include README.md
|
|
7
|
+
include LICENSE
|
|
8
|
+
include CHANGELOG.md
|
|
9
|
+
|
|
10
|
+
# Include examples
|
|
11
|
+
include examples/*.py
|
|
12
|
+
|
|
13
|
+
# Include testing
|
|
14
|
+
include tests/*.py
|
|
15
|
+
|
|
16
|
+
# Include type information
|
|
17
|
+
include py.typed
|
|
18
|
+
|