Metadata-Version: 2.1
Name: lspleanklib
Version: 0.2.1
Summary: LSP proxy and library to link LSP-enabled editors to Lake LSP servers
Author-email: Castedo Ellerman <castedo@castedo.com>
License: MIT License
        
        Copyright (c) 2026 E. Castedo Ellerman
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be
        included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
        DEALINGS IN THE SOFTWARE.
        
Keywords: lsp,language-server-protocol,jsonrpc
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: crossplatform
Requires-Dist: platformdirs ; extra == 'crossplatform'

lspleanklib
===========

This repository is online at both:

* [gitlab.com](https://gitlab.com/castedo/lspleanklib) for active development, and
* [github.com](https://github.com/castedo/lspleanklib) as a mirror.


lspleanklib is a low-level library that implements functionality used by
[webleank](https://gitlab.com/castedo/webleank/), such as:

* LSP,
* JSON-RPC,
* multiplexing multiple `lake serve` workspace sessions into one unified editor LSP session,
* connecting to `lake serve` via local UNIX domain sockets,
* running `lake serve` outside the editor process,
* and proper reading of stdin with Python asyncio.

It has no required dependencies on Linux and macOS, but Windows requires the Python
package `platformdirs` to be installed. The pip install package specification
`lspleanklib[crossplatform]` will add `platformdirs` as a requirement.

This package also includes two CLI utilities for advanced usage:
* lspleank: an LSP server used by webleank to run inside an editor process, and
* lakelspout: a Lake LSP proxy that connects via local UNIX domain sockets to lspleank.

For more information, visit [webleank](https://gitlab.com/castedo/webleank) and
[lean.castedo.com](https://lean.castedo.com).
