jl-db-comp 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

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 (37) hide show
  1. jl_db_comp/_version.py +1 -1
  2. jl_db_comp/connections.py +173 -0
  3. jl_db_comp/routes.py +353 -7
  4. jl_db_comp/tests/test_routes.py +1 -1
  5. {jl_db_comp/labextension → jl_db_comp-0.1.1.data/data/share/jupyter/labextensions/jl_db_comp}/package.json +3 -2
  6. {jl_db_comp-0.1.0.data → jl_db_comp-0.1.1.data}/data/share/jupyter/labextensions/jl_db_comp/schemas/jl_db_comp/package.json.orig +2 -1
  7. {jl_db_comp-0.1.0.data → jl_db_comp-0.1.1.data}/data/share/jupyter/labextensions/jl_db_comp/schemas/jl_db_comp/plugin.json +4 -4
  8. jl_db_comp-0.1.1.data/data/share/jupyter/labextensions/jl_db_comp/static/171.d366980651e0db8d978c.js +1 -0
  9. jl_db_comp-0.1.1.data/data/share/jupyter/labextensions/jl_db_comp/static/728.6552504d5b9b27551bc5.js +1 -0
  10. jl_db_comp-0.1.1.data/data/share/jupyter/labextensions/jl_db_comp/static/remoteEntry.48c365d3de0d860be537.js +1 -0
  11. jl_db_comp-0.1.1.data/data/share/jupyter/labextensions/jl_db_comp/static/third-party-licenses.json +16 -0
  12. {jl_db_comp-0.1.0.dist-info → jl_db_comp-0.1.1.dist-info}/METADATA +103 -1
  13. jl_db_comp-0.1.1.dist-info/RECORD +20 -0
  14. jl_db_comp/labextension/build_log.json +0 -728
  15. jl_db_comp/labextension/schemas/jl_db_comp/package.json.orig +0 -214
  16. jl_db_comp/labextension/schemas/jl_db_comp/plugin.json +0 -27
  17. jl_db_comp/labextension/static/lib_index_js.a0969ed73da70f2cc451.js +0 -561
  18. jl_db_comp/labextension/static/lib_index_js.a0969ed73da70f2cc451.js.map +0 -1
  19. jl_db_comp/labextension/static/remoteEntry.5763ae02737e035e938c.js +0 -560
  20. jl_db_comp/labextension/static/remoteEntry.5763ae02737e035e938c.js.map +0 -1
  21. jl_db_comp/labextension/static/style.js +0 -4
  22. jl_db_comp/labextension/static/style_index_js.5364c7419a6b9db5d727.js +0 -508
  23. jl_db_comp/labextension/static/style_index_js.5364c7419a6b9db5d727.js.map +0 -1
  24. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/build_log.json +0 -728
  25. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/package.json +0 -219
  26. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/lib_index_js.a0969ed73da70f2cc451.js +0 -561
  27. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/lib_index_js.a0969ed73da70f2cc451.js.map +0 -1
  28. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/remoteEntry.5763ae02737e035e938c.js +0 -560
  29. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/remoteEntry.5763ae02737e035e938c.js.map +0 -1
  30. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/style_index_js.5364c7419a6b9db5d727.js +0 -508
  31. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/style_index_js.5364c7419a6b9db5d727.js.map +0 -1
  32. jl_db_comp-0.1.0.dist-info/RECORD +0 -33
  33. {jl_db_comp-0.1.0.data → jl_db_comp-0.1.1.data}/data/etc/jupyter/jupyter_server_config.d/jl_db_comp.json +0 -0
  34. {jl_db_comp-0.1.0.data → jl_db_comp-0.1.1.data}/data/share/jupyter/labextensions/jl_db_comp/install.json +0 -0
  35. {jl_db_comp-0.1.0.data → jl_db_comp-0.1.1.data}/data/share/jupyter/labextensions/jl_db_comp/static/style.js +0 -0
  36. {jl_db_comp-0.1.0.dist-info → jl_db_comp-0.1.1.dist-info}/WHEEL +0 -0
  37. {jl_db_comp-0.1.0.dist-info → jl_db_comp-0.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,214 +0,0 @@
1
- {
2
- "name": "jl_db_comp",
3
- "version": "0.1.0",
4
- "description": "A JupyterLab extension to complete db queries in jupyterlab notebooks",
5
- "keywords": [
6
- "jupyter",
7
- "jupyterlab",
8
- "jupyterlab-extension"
9
- ],
10
- "homepage": "https://github.com/Ben-Herz/jl_db_completer",
11
- "bugs": {
12
- "url": "https://github.com/Ben-Herz/jl_db_completer/issues"
13
- },
14
- "license": "BSD-3-Clause",
15
- "author": {
16
- "name": "jl_db_completer",
17
- "email": "herzben@pm.me"
18
- },
19
- "files": [
20
- "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
- "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
- "src/**/*.{ts,tsx}",
23
- "schema/*.json"
24
- ],
25
- "main": "lib/index.js",
26
- "types": "lib/index.d.ts",
27
- "style": "style/index.css",
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/Ben-Herz/jl_db_completer.git"
31
- },
32
- "scripts": {
33
- "build": "jlpm build:lib && jlpm build:labextension:dev",
34
- "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
35
- "build:labextension": "jupyter labextension build .",
36
- "build:labextension:dev": "jupyter labextension build --development True .",
37
- "build:lib": "tsc --sourceMap",
38
- "build:lib:prod": "tsc",
39
- "clean": "jlpm clean:lib",
40
- "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
41
- "clean:lintcache": "rimraf .eslintcache .stylelintcache",
42
- "clean:labextension": "rimraf jl_db_comp/labextension jl_db_comp/_version.py",
43
- "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
44
- "eslint": "jlpm eslint:check --fix",
45
- "eslint:check": "eslint . --cache --ext .ts,.tsx",
46
- "install:extension": "jlpm build",
47
- "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
48
- "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
49
- "prettier": "jlpm prettier:base --write --list-different",
50
- "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
51
- "prettier:check": "jlpm prettier:base --check",
52
- "stylelint": "jlpm stylelint:check --fix",
53
- "stylelint:check": "stylelint --cache \"style/**/*.css\"",
54
- "test": "jest --coverage",
55
- "watch": "run-p watch:src watch:labextension",
56
- "watch:src": "tsc -w --sourceMap",
57
- "watch:labextension": "jupyter labextension watch ."
58
- },
59
- "dependencies": {
60
- "@jupyterlab/application": "^4.0.0",
61
- "@jupyterlab/completer": "^4.0.0",
62
- "@jupyterlab/coreutils": "^6.0.0",
63
- "@jupyterlab/services": "^7.0.0",
64
- "@jupyterlab/settingregistry": "^4.0.0"
65
- },
66
- "devDependencies": {
67
- "@jupyterlab/builder": "^4.0.0",
68
- "@jupyterlab/testutils": "^4.0.0",
69
- "@types/jest": "^29.2.0",
70
- "@types/json-schema": "^7.0.11",
71
- "@types/react": "^18.0.26",
72
- "@types/react-addons-linked-state-mixin": "^0.14.22",
73
- "@typescript-eslint/eslint-plugin": "^6.1.0",
74
- "@typescript-eslint/parser": "^6.1.0",
75
- "css-loader": "^6.7.1",
76
- "eslint": "^8.36.0",
77
- "eslint-config-prettier": "^8.8.0",
78
- "eslint-plugin-prettier": "^5.0.0",
79
- "jest": "^29.2.0",
80
- "mkdirp": "^1.0.3",
81
- "npm-run-all2": "^7.0.1",
82
- "prettier": "^3.0.0",
83
- "rimraf": "^5.0.1",
84
- "source-map-loader": "^1.0.2",
85
- "style-loader": "^3.3.1",
86
- "stylelint": "^15.10.1",
87
- "stylelint-config-recommended": "^13.0.0",
88
- "stylelint-config-standard": "^34.0.0",
89
- "stylelint-csstree-validator": "^3.0.0",
90
- "stylelint-prettier": "^4.0.0",
91
- "typescript": "~5.5.4",
92
- "yjs": "^13.5.0"
93
- },
94
- "resolutions": {
95
- "lib0": "0.2.111"
96
- },
97
- "sideEffects": [
98
- "style/*.css",
99
- "style/index.js"
100
- ],
101
- "styleModule": "style/index.js",
102
- "publishConfig": {
103
- "access": "public"
104
- },
105
- "jupyterlab": {
106
- "discovery": {
107
- "server": {
108
- "managers": [
109
- "pip"
110
- ],
111
- "base": {
112
- "name": "jl_db_comp"
113
- }
114
- }
115
- },
116
- "extension": true,
117
- "outputDir": "jl_db_comp/labextension",
118
- "schemaDir": "schema"
119
- },
120
- "eslintIgnore": [
121
- "node_modules",
122
- "dist",
123
- "coverage",
124
- "**/*.d.ts",
125
- "tests",
126
- "**/__tests__",
127
- "ui-tests"
128
- ],
129
- "eslintConfig": {
130
- "extends": [
131
- "eslint:recommended",
132
- "plugin:@typescript-eslint/eslint-recommended",
133
- "plugin:@typescript-eslint/recommended",
134
- "plugin:prettier/recommended"
135
- ],
136
- "parser": "@typescript-eslint/parser",
137
- "parserOptions": {
138
- "project": "tsconfig.json",
139
- "sourceType": "module"
140
- },
141
- "plugins": [
142
- "@typescript-eslint"
143
- ],
144
- "rules": {
145
- "@typescript-eslint/naming-convention": [
146
- "error",
147
- {
148
- "selector": "interface",
149
- "format": [
150
- "PascalCase"
151
- ],
152
- "custom": {
153
- "regex": "^I[A-Z]",
154
- "match": true
155
- }
156
- }
157
- ],
158
- "@typescript-eslint/no-unused-vars": [
159
- "warn",
160
- {
161
- "args": "none"
162
- }
163
- ],
164
- "@typescript-eslint/no-explicit-any": "off",
165
- "@typescript-eslint/no-namespace": "off",
166
- "@typescript-eslint/no-use-before-define": "off",
167
- "@typescript-eslint/quotes": [
168
- "error",
169
- "single",
170
- {
171
- "avoidEscape": true,
172
- "allowTemplateLiterals": false
173
- }
174
- ],
175
- "curly": [
176
- "error",
177
- "all"
178
- ],
179
- "eqeqeq": "error",
180
- "prefer-arrow-callback": "error"
181
- }
182
- },
183
- "prettier": {
184
- "singleQuote": true,
185
- "trailingComma": "none",
186
- "arrowParens": "avoid",
187
- "endOfLine": "auto",
188
- "overrides": [
189
- {
190
- "files": "package.json",
191
- "options": {
192
- "tabWidth": 4
193
- }
194
- }
195
- ]
196
- },
197
- "stylelint": {
198
- "extends": [
199
- "stylelint-config-recommended",
200
- "stylelint-config-standard",
201
- "stylelint-prettier/recommended"
202
- ],
203
- "plugins": [
204
- "stylelint-csstree-validator"
205
- ],
206
- "rules": {
207
- "csstree/validator": true,
208
- "property-no-vendor-prefix": null,
209
- "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
210
- "selector-no-vendor-prefix": null,
211
- "value-no-vendor-prefix": null
212
- }
213
- }
214
- }
@@ -1,27 +0,0 @@
1
- {
2
- "jupyter.lab.shortcuts": [],
3
- "title": "PostgreSQL Database Completer",
4
- "description": "Settings for PostgreSQL database autocomplete in JupyterLab.",
5
- "type": "object",
6
- "properties": {
7
- "enabled": {
8
- "type": "boolean",
9
- "title": "Enable PostgreSQL completions",
10
- "description": "Enable or disable PostgreSQL table and column completions",
11
- "default": true
12
- },
13
- "databaseUrl": {
14
- "type": "string",
15
- "title": "Database URL",
16
- "description": "PostgreSQL connection string (e.g., postgresql://user:password@host:port/dbname). Leave empty to use POSTGRES_URL environment variable.",
17
- "default": ""
18
- },
19
- "schema": {
20
- "type": "string",
21
- "title": "Database Schema",
22
- "description": "PostgreSQL schema to query for table and column names",
23
- "default": "public"
24
- }
25
- },
26
- "additionalProperties": false
27
- }