hsql 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.
hsql-0.1.0/.gitignore ADDED
@@ -0,0 +1,185 @@
1
+ *.db*
2
+ *.db.wal
3
+ *.csv
4
+ *.json
5
+ *.parquet
6
+ *.sql
7
+ *.sqlite
8
+ !tests/data/**/*.db
9
+ !tests/data/**/*.csv
10
+ !tests/data/**/*.json
11
+ !tests/data/**/*.parquet
12
+ !tests/data/**/*.sql
13
+ Pipfile
14
+ snapshot_report.html
15
+ .harlequin.toml
16
+ .profiles
17
+
18
+ # Byte-compiled / optimized / DLL files
19
+ __pycache__/
20
+ *.py[cod]
21
+ *$py.class
22
+
23
+ # C extensions
24
+ *.so
25
+ !tests/data/**/*.so
26
+
27
+ # Distribution / packaging
28
+ .Python
29
+ build/
30
+ develop-eggs/
31
+ dist/
32
+ downloads/
33
+ eggs/
34
+ .eggs/
35
+ lib/
36
+ lib64/
37
+ parts/
38
+ sdist/
39
+ var/
40
+ wheels/
41
+ share/python-wheels/
42
+ *.egg-info/
43
+ .installed.cfg
44
+ *.egg
45
+ MANIFEST
46
+
47
+ # PyInstaller
48
+ # Usually these files are written by a python script from a template
49
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
50
+ *.manifest
51
+ *.spec
52
+
53
+ # Installer logs
54
+ pip-log.txt
55
+ pip-delete-this-directory.txt
56
+
57
+ # Unit test / coverage reports
58
+ htmlcov/
59
+ .tox/
60
+ .nox/
61
+ .coverage
62
+ .coverage.*
63
+ .cache
64
+ nosetests.xml
65
+ coverage.xml
66
+ *.cover
67
+ *.py,cover
68
+ .hypothesis/
69
+ .pytest_cache/
70
+ cover/
71
+
72
+ # Translations
73
+ *.mo
74
+ *.pot
75
+
76
+ # Django stuff:
77
+ *.log
78
+ local_settings.py
79
+ db.sqlite3
80
+ db.sqlite3-journal
81
+
82
+ # Flask stuff:
83
+ instance/
84
+ .webassets-cache
85
+
86
+ # Scrapy stuff:
87
+ .scrapy
88
+
89
+ # Sphinx documentation
90
+ docs/_build/
91
+
92
+ # PyBuilder
93
+ .pybuilder/
94
+ target/
95
+
96
+ # Jupyter Notebook
97
+ .ipynb_checkpoints
98
+
99
+ # IPython
100
+ profile_default/
101
+ ipython_config.py
102
+
103
+ # pyenv
104
+ # For a library or package, you might want to ignore these files since the code is
105
+ # intended to run in multiple environments; otherwise, check them in:
106
+ # .python-version
107
+
108
+ # pipenv
109
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
110
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
111
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
112
+ # install all needed dependencies.
113
+ #Pipfile.lock
114
+
115
+ # poetry
116
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
117
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
118
+ # commonly ignored for libraries.
119
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
120
+ #poetry.lock
121
+
122
+ # pdm
123
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
124
+ #pdm.lock
125
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
126
+ # in version control.
127
+ # https://pdm.fming.dev/#use-with-ide
128
+ .pdm.toml
129
+
130
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
131
+ __pypackages__/
132
+
133
+ # Celery stuff
134
+ celerybeat-schedule
135
+ celerybeat.pid
136
+
137
+ # SageMath parsed files
138
+ *.sage.py
139
+
140
+ # Environments
141
+ .env
142
+ .venv
143
+ env/
144
+ venv/
145
+ ENV/
146
+ env.bak/
147
+ venv.bak/
148
+
149
+ # Spyder project settings
150
+ .spyderproject
151
+ .spyproject
152
+
153
+ # Rope project settings
154
+ .ropeproject
155
+
156
+ # mkdocs documentation
157
+ /site
158
+
159
+ # mypy
160
+ .mypy_cache/
161
+ .dmypy.json
162
+ dmypy.json
163
+
164
+ # ruff
165
+ .ruff_cache
166
+
167
+ # Pyre type checker
168
+ .pyre/
169
+
170
+ # pytype static type analyzer
171
+ .pytype/
172
+
173
+ # Cython debug symbols
174
+ cython_debug/
175
+
176
+ # PyCharm
177
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
178
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
179
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
180
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
181
+ #.idea/
182
+
183
+ # Claude Code
184
+ CLAUDE.md
185
+ .claude/
hsql-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Ted Conbeer
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.
hsql-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: hsql
3
+ Version: 0.1.0
4
+ Summary: The headless SQL client for scripts and agents. Installs Harlequin.
5
+ Project-URL: Homepage, https://harlequin.sh
6
+ Project-URL: Documentation, https://harlequin.sh/docs/getting-started/index
7
+ Project-URL: Repository, https://github.com/tconbeer/harlequin
8
+ Project-URL: Bug Tracker, https://github.com/tconbeer/harlequin/issues
9
+ Project-URL: Changelog, https://github.com/tconbeer/harlequin/blob/main/CHANGELOG.md
10
+ Author-email: Ted Conbeer <tconbeer@users.noreply.github.com>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: agents,cli,harlequin,headless,sql
14
+ Classifier: Development Status :: 1 - Planning
15
+ Classifier: Operating System :: MacOS :: MacOS X
16
+ Classifier: Operating System :: Microsoft :: Windows
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: harlequin>=2.8
25
+ Description-Content-Type: text/markdown
26
+
27
+ # hsql
28
+
29
+ `hsql` is the headless command-line interface to
30
+ [Harlequin](https://harlequin.sh), the SQL IDE for your terminal — the same
31
+ engine and the same database adapters, without the TUI, for scripts, CI, and
32
+ coding agents.
33
+
34
+ ## Status
35
+
36
+ **This package is a placeholder that installs Harlequin.** The `hsql` command
37
+ itself is not here yet; it will ship as part of the `harlequin` distribution,
38
+ and this package will then require the version that provides it.
39
+
40
+ Installing it today gets you Harlequin:
41
+
42
+ ```bash
43
+ pip install hsql
44
+ harlequin --help
45
+ ```
46
+
47
+ If that is what you want, `pip install harlequin` is the more direct way to
48
+ say so.
49
+
50
+ ## What it will be
51
+
52
+ One CLI contract across every database Harlequin supports — DuckDB, SQLite,
53
+ Postgres, MySQL, BigQuery, Trino, Databricks, ODBC, ADBC and more — reusing
54
+ the profiles you already have in `.harlequin.toml`:
55
+
56
+ ```bash
57
+ hsql -P prod -c "select count(*) from orders"
58
+ hsql -P prod catalog analytics
59
+ hsql -P prod -tAc "select count(*) from orders"
60
+ ```
61
+
62
+ Same flags, same output formats, same exit codes, whichever database is on the
63
+ other end.
64
+
65
+ ## Links
66
+
67
+ - Documentation: <https://harlequin.sh>
68
+ - Source: <https://github.com/tconbeer/harlequin>
69
+ - Issues: <https://github.com/tconbeer/harlequin/issues>
70
+
71
+ MIT licensed.
hsql-0.1.0/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # hsql
2
+
3
+ `hsql` is the headless command-line interface to
4
+ [Harlequin](https://harlequin.sh), the SQL IDE for your terminal — the same
5
+ engine and the same database adapters, without the TUI, for scripts, CI, and
6
+ coding agents.
7
+
8
+ ## Status
9
+
10
+ **This package is a placeholder that installs Harlequin.** The `hsql` command
11
+ itself is not here yet; it will ship as part of the `harlequin` distribution,
12
+ and this package will then require the version that provides it.
13
+
14
+ Installing it today gets you Harlequin:
15
+
16
+ ```bash
17
+ pip install hsql
18
+ harlequin --help
19
+ ```
20
+
21
+ If that is what you want, `pip install harlequin` is the more direct way to
22
+ say so.
23
+
24
+ ## What it will be
25
+
26
+ One CLI contract across every database Harlequin supports — DuckDB, SQLite,
27
+ Postgres, MySQL, BigQuery, Trino, Databricks, ODBC, ADBC and more — reusing
28
+ the profiles you already have in `.harlequin.toml`:
29
+
30
+ ```bash
31
+ hsql -P prod -c "select count(*) from orders"
32
+ hsql -P prod catalog analytics
33
+ hsql -P prod -tAc "select count(*) from orders"
34
+ ```
35
+
36
+ Same flags, same output formats, same exit codes, whichever database is on the
37
+ other end.
38
+
39
+ ## Links
40
+
41
+ - Documentation: <https://harlequin.sh>
42
+ - Source: <https://github.com/tconbeer/harlequin>
43
+ - Issues: <https://github.com/tconbeer/harlequin/issues>
44
+
45
+ MIT licensed.
@@ -0,0 +1,54 @@
1
+ [project]
2
+
3
+ name = "hsql"
4
+ version = "0.1.0"
5
+ requires-python = ">=3.10"
6
+ description = "The headless SQL client for scripts and agents. Installs Harlequin."
7
+ authors = [
8
+ { name = "Ted Conbeer", email = "tconbeer@users.noreply.github.com" }
9
+ ]
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ readme = "README.md"
13
+ keywords = ["sql", "cli", "harlequin", "agents", "headless"]
14
+ classifiers = [
15
+ "Development Status :: 1 - Planning",
16
+ "Operating System :: MacOS :: MacOS X",
17
+ "Operating System :: Microsoft :: Windows",
18
+ "Operating System :: POSIX :: Linux",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Programming Language :: Python :: 3.14",
24
+ ]
25
+
26
+ # hsql is a metapackage: it ships no modules of its own, it just installs
27
+ # Harlequin. The floor floats deliberately so this package does not need a
28
+ # release every time Harlequin cuts one. When Harlequin starts shipping the
29
+ # `hsql` console script, raise the floor to that version -- do not add a
30
+ # console script here, or two installed distributions would claim one name.
31
+ dependencies = [
32
+ "harlequin>=2.8",
33
+ ]
34
+
35
+
36
+ [project.urls]
37
+
38
+ Homepage = "https://harlequin.sh"
39
+ Documentation = "https://harlequin.sh/docs/getting-started/index"
40
+ Repository = "https://github.com/tconbeer/harlequin"
41
+ "Bug Tracker" = "https://github.com/tconbeer/harlequin/issues"
42
+ Changelog = "https://github.com/tconbeer/harlequin/blob/main/CHANGELOG.md"
43
+
44
+
45
+ [build-system]
46
+
47
+ requires = ["hatchling"]
48
+ build-backend = "hatchling.build"
49
+
50
+
51
+ [tool.hatch.build.targets.wheel]
52
+
53
+ # there are no modules to ship; without this hatchling cannot infer a target.
54
+ bypass-selection = true