jl-db-comp 0.1.0__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 (33) hide show
  1. jl_db_comp/__init__.py +36 -0
  2. jl_db_comp/_version.py +4 -0
  3. jl_db_comp/labextension/build_log.json +728 -0
  4. jl_db_comp/labextension/package.json +219 -0
  5. jl_db_comp/labextension/schemas/jl_db_comp/package.json.orig +214 -0
  6. jl_db_comp/labextension/schemas/jl_db_comp/plugin.json +27 -0
  7. jl_db_comp/labextension/static/lib_index_js.a0969ed73da70f2cc451.js +561 -0
  8. jl_db_comp/labextension/static/lib_index_js.a0969ed73da70f2cc451.js.map +1 -0
  9. jl_db_comp/labextension/static/remoteEntry.5763ae02737e035e938c.js +560 -0
  10. jl_db_comp/labextension/static/remoteEntry.5763ae02737e035e938c.js.map +1 -0
  11. jl_db_comp/labextension/static/style.js +4 -0
  12. jl_db_comp/labextension/static/style_index_js.5364c7419a6b9db5d727.js +508 -0
  13. jl_db_comp/labextension/static/style_index_js.5364c7419a6b9db5d727.js.map +1 -0
  14. jl_db_comp/routes.py +332 -0
  15. jl_db_comp/tests/__init__.py +1 -0
  16. jl_db_comp/tests/test_routes.py +49 -0
  17. jl_db_comp-0.1.0.data/data/etc/jupyter/jupyter_server_config.d/jl_db_comp.json +7 -0
  18. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/build_log.json +728 -0
  19. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/install.json +5 -0
  20. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/package.json +219 -0
  21. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/schemas/jl_db_comp/package.json.orig +214 -0
  22. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/schemas/jl_db_comp/plugin.json +27 -0
  23. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/lib_index_js.a0969ed73da70f2cc451.js +561 -0
  24. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/lib_index_js.a0969ed73da70f2cc451.js.map +1 -0
  25. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/remoteEntry.5763ae02737e035e938c.js +560 -0
  26. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/remoteEntry.5763ae02737e035e938c.js.map +1 -0
  27. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/style.js +4 -0
  28. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/style_index_js.5364c7419a6b9db5d727.js +508 -0
  29. jl_db_comp-0.1.0.data/data/share/jupyter/labextensions/jl_db_comp/static/style_index_js.5364c7419a6b9db5d727.js.map +1 -0
  30. jl_db_comp-0.1.0.dist-info/METADATA +440 -0
  31. jl_db_comp-0.1.0.dist-info/RECORD +33 -0
  32. jl_db_comp-0.1.0.dist-info/WHEEL +4 -0
  33. jl_db_comp-0.1.0.dist-info/licenses/LICENSE +29 -0
@@ -0,0 +1,219 @@
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
+ "_build": {
120
+ "load": "static/remoteEntry.5763ae02737e035e938c.js",
121
+ "extension": "./extension",
122
+ "style": "./style"
123
+ }
124
+ },
125
+ "eslintIgnore": [
126
+ "node_modules",
127
+ "dist",
128
+ "coverage",
129
+ "**/*.d.ts",
130
+ "tests",
131
+ "**/__tests__",
132
+ "ui-tests"
133
+ ],
134
+ "eslintConfig": {
135
+ "extends": [
136
+ "eslint:recommended",
137
+ "plugin:@typescript-eslint/eslint-recommended",
138
+ "plugin:@typescript-eslint/recommended",
139
+ "plugin:prettier/recommended"
140
+ ],
141
+ "parser": "@typescript-eslint/parser",
142
+ "parserOptions": {
143
+ "project": "tsconfig.json",
144
+ "sourceType": "module"
145
+ },
146
+ "plugins": [
147
+ "@typescript-eslint"
148
+ ],
149
+ "rules": {
150
+ "@typescript-eslint/naming-convention": [
151
+ "error",
152
+ {
153
+ "selector": "interface",
154
+ "format": [
155
+ "PascalCase"
156
+ ],
157
+ "custom": {
158
+ "regex": "^I[A-Z]",
159
+ "match": true
160
+ }
161
+ }
162
+ ],
163
+ "@typescript-eslint/no-unused-vars": [
164
+ "warn",
165
+ {
166
+ "args": "none"
167
+ }
168
+ ],
169
+ "@typescript-eslint/no-explicit-any": "off",
170
+ "@typescript-eslint/no-namespace": "off",
171
+ "@typescript-eslint/no-use-before-define": "off",
172
+ "@typescript-eslint/quotes": [
173
+ "error",
174
+ "single",
175
+ {
176
+ "avoidEscape": true,
177
+ "allowTemplateLiterals": false
178
+ }
179
+ ],
180
+ "curly": [
181
+ "error",
182
+ "all"
183
+ ],
184
+ "eqeqeq": "error",
185
+ "prefer-arrow-callback": "error"
186
+ }
187
+ },
188
+ "prettier": {
189
+ "singleQuote": true,
190
+ "trailingComma": "none",
191
+ "arrowParens": "avoid",
192
+ "endOfLine": "auto",
193
+ "overrides": [
194
+ {
195
+ "files": "package.json",
196
+ "options": {
197
+ "tabWidth": 4
198
+ }
199
+ }
200
+ ]
201
+ },
202
+ "stylelint": {
203
+ "extends": [
204
+ "stylelint-config-recommended",
205
+ "stylelint-config-standard",
206
+ "stylelint-prettier/recommended"
207
+ ],
208
+ "plugins": [
209
+ "stylelint-csstree-validator"
210
+ ],
211
+ "rules": {
212
+ "csstree/validator": true,
213
+ "property-no-vendor-prefix": null,
214
+ "selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
215
+ "selector-no-vendor-prefix": null,
216
+ "value-no-vendor-prefix": null
217
+ }
218
+ }
219
+ }
@@ -0,0 +1,214 @@
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
+ }
@@ -0,0 +1,27 @@
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
+ }