webleank 0.1.1__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.
- webleank-0.1.1/.gitignore +7 -0
- webleank-0.1.1/LICENSE +21 -0
- webleank-0.1.1/PKG-INFO +34 -0
- webleank-0.1.1/justfile +23 -0
- webleank-0.1.1/pyproject.toml +52 -0
- webleank-0.1.1/setup.cfg +4 -0
- webleank-0.1.1/webapp/eslint.config.ts +21 -0
- webleank-0.1.1/webapp/index.html +12 -0
- webleank-0.1.1/webapp/package-lock.json +2307 -0
- webleank-0.1.1/webapp/package.json +34 -0
- webleank-0.1.1/webapp/src/ControlPanel.css +3 -0
- webleank-0.1.1/webapp/src/ControlPanel.tsx +13 -0
- webleank-0.1.1/webapp/src/index.css +9 -0
- webleank-0.1.1/webapp/src/main.tsx +11 -0
- webleank-0.1.1/webapp/tsconfig.app.json +12 -0
- webleank-0.1.1/webapp/tsconfig.json +7 -0
- webleank-0.1.1/webapp/tsconfig.node.json +26 -0
- webleank-0.1.1/webapp/vite.config.ts +7 -0
- webleank-0.1.1/webleank/__init__.py +0 -0
- webleank-0.1.1/webleank/__main__.py +3 -0
- webleank-0.1.1/webleank/cli.py +100 -0
- webleank-0.1.1/webleank/config/webleank.toml +2 -0
- webleank-0.1.1/webleank/jsonrpc.py +51 -0
- webleank-0.1.1/webleank/server.py +423 -0
- webleank-0.1.1/webleank/util.py +32 -0
- webleank-0.1.1/webleank/webapp/assets/index-ByRfk9pu.js +9 -0
- webleank-0.1.1/webleank/webapp/assets/index-C808LPWM.css +1 -0
- webleank-0.1.1/webleank/webapp/index.html +13 -0
- webleank-0.1.1/webleank.egg-info/PKG-INFO +34 -0
- webleank-0.1.1/webleank.egg-info/SOURCES.txt +32 -0
- webleank-0.1.1/webleank.egg-info/dependency_links.txt +1 -0
- webleank-0.1.1/webleank.egg-info/entry_points.txt +2 -0
- webleank-0.1.1/webleank.egg-info/requires.txt +2 -0
- webleank-0.1.1/webleank.egg-info/top_level.txt +1 -0
webleank-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 E. Castedo Ellerman
|
|
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
|
|
13
|
+
included in all 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
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
21
|
+
DEALINGS IN THE SOFTWARE.
|
webleank-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: webleank
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Link Lean sidekick web apps to LSP-enabled editors
|
|
5
|
+
Author-email: Castedo Ellerman <castedo@castedo.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 E. Castedo Ellerman
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be
|
|
18
|
+
included in all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
25
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
26
|
+
DEALINGS IN THE SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Keywords: lean,lsp,language-server-protocol
|
|
29
|
+
Classifier: Programming Language :: Python :: 3
|
|
30
|
+
Classifier: Operating System :: POSIX
|
|
31
|
+
Requires-Python: >=3.12
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Requires-Dist: platformdirs
|
|
34
|
+
Requires-Dist: websockets>=14.2
|
webleank-0.1.1/justfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env -S just --justfile
|
|
2
|
+
|
|
3
|
+
default:
|
|
4
|
+
just --list
|
|
5
|
+
|
|
6
|
+
test:
|
|
7
|
+
ruff check webleank || true
|
|
8
|
+
mypy --strict webleank
|
|
9
|
+
|
|
10
|
+
build:
|
|
11
|
+
cd webapp && npm install && npm run build
|
|
12
|
+
rm -rf webleank/webapp && mv webapp/dist webleank/webapp
|
|
13
|
+
python3 -m build --sdist --wheel --no-isolation
|
|
14
|
+
|
|
15
|
+
clean:
|
|
16
|
+
rm -rf dist
|
|
17
|
+
rm -rf build
|
|
18
|
+
rm -rf *.egg-info
|
|
19
|
+
rm -f _version.py
|
|
20
|
+
rm -rf webapp/dist
|
|
21
|
+
|
|
22
|
+
clean-fresh: clean
|
|
23
|
+
rm -rf webapp/node_modules
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 69.0.3", "setuptools_scm[simple] >= 8"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "webleank"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Link Lean sidekick web apps to LSP-enabled editors"
|
|
9
|
+
authors = [{name = "Castedo Ellerman", email = "castedo@castedo.com"}]
|
|
10
|
+
license = {file = "LICENSE"}
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Programming Language :: Python :: 3",
|
|
14
|
+
"Operating System :: POSIX",
|
|
15
|
+
]
|
|
16
|
+
keywords = ["lean", "lsp", "language-server-protocol"]
|
|
17
|
+
dependencies = [
|
|
18
|
+
"platformdirs",
|
|
19
|
+
"websockets>=14.2",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.scripts]
|
|
23
|
+
webleank = "webleank.cli:main"
|
|
24
|
+
|
|
25
|
+
[tool.setuptools.packages.find]
|
|
26
|
+
include = ["webleank*"]
|
|
27
|
+
|
|
28
|
+
[tool.setuptools.package-data]
|
|
29
|
+
"webleank" = ["webapp/**"]
|
|
30
|
+
|
|
31
|
+
[tool.setuptools_scm]
|
|
32
|
+
version_file = "_version.py"
|
|
33
|
+
|
|
34
|
+
[dependency-groups]
|
|
35
|
+
test = [
|
|
36
|
+
"pytest >= 8",
|
|
37
|
+
"pytest-asyncio",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[tool.pytest.ini_options]
|
|
41
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
42
|
+
asyncio_mode = "auto"
|
|
43
|
+
pythonpath = ["."]
|
|
44
|
+
|
|
45
|
+
[tool.ruff.format]
|
|
46
|
+
quote-style = "preserve"
|
|
47
|
+
docstring-code-format = false
|
|
48
|
+
|
|
49
|
+
[tool.ruff.lint]
|
|
50
|
+
ignore = [
|
|
51
|
+
"E401", # Multiple imports on one line
|
|
52
|
+
]
|
webleank-0.1.1/setup.cfg
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import eslint from '@eslint/js'
|
|
2
|
+
import stylistic from '@stylistic/eslint-plugin'
|
|
3
|
+
import tseslint from 'typescript-eslint'
|
|
4
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
5
|
+
|
|
6
|
+
export default defineConfig([
|
|
7
|
+
globalIgnores(['dist']),
|
|
8
|
+
eslint.configs.recommended,
|
|
9
|
+
tseslint.configs.recommended,
|
|
10
|
+
stylistic.configs.customize({
|
|
11
|
+
indent: 2,
|
|
12
|
+
severity: 'warn',
|
|
13
|
+
}),
|
|
14
|
+
{
|
|
15
|
+
rules: {
|
|
16
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
17
|
+
'@typescript-eslint/no-unused-vars': 'warn',
|
|
18
|
+
// See https://eslint.style/rules to relax.
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
])
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Webleank Control Panel</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|