pylsp-inlay-hints
Experimental inlay hints plugin for PyLSP.
This is a plugin for Python LSP Server.
Installation
To use this plugin, you need to install this plugin in the same virtualenv as python-lsp-server itself.
pip install pylsp-inlay-hints
Then run python-lsp-server as usual, the plugin will be auto-discovered by
python-lsp-server if you've installed it to the right environment. Refer to
python-lsp-server and your IDE/text editor documentation on how to setup
python-lsp-server.
Configuration
In order for inlay hints to work, your LSP implementation needs to respect inlayHintProvider capability in experimental section of server capabilties.
Features
This plugin adds the following features to pylsp:
- "inlayHintProvider"
Developing
Install development dependencies with (you might want to create a virtualenv first):
git clone https://github.com/mpaliwoda/pylsp-inlay-hints pylsp-inlay-hints
cd pylsp-inlay-hints
pip install -e '.[dev]'
Enabling logging
To enable logging in pylsp:
pylsp -v --log-file /tmp/pylsp.log
Enabling tcp mode
Normally, editors communicate with language servers through standard input/output. Optionally, you can run pylsp in tcp mode if you want to be able to use the standard input/output, for example so you can use IPython or pudb, using the --tcp flag:
pylsp -v --log-file /tmp/pylsp.log --tcp --port 7090
Consult your lsp client documentation on how to connect to tcp-mode language
server, but if it doesn't support connecting to a language server via TCP, then
usually can configure netcat/nc to be your "language server" that will
proxy requests to a tcp-mode language server:
nc localhost 7090
TODO: document how to connect to pylsp via pylsp from LSP clients.
Credits
This package was created with Cookiecutter from python-lsp/cookiecutter-pylsp-plugin project template.
Metadata
Release files for pylsp-inlay-hints 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylsp_inlay_hints-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for pylsp_inlay_hints-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylsp_inlay_hints-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pylsp_inlay_hints-0.1.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / pylsp_inlay_hints-0.1.0.tar.gz
| Download URL | pylsp_inlay_hints-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
543dc9c68ac205dfc4938ab868123ea567a1ff8312ac7ae8211c8482673c0492
|
|
BLAKE2b-256 checksum How to use checksums |
fe1d4d02235b989eda01b471b422128b65e3d80ba7dfc564afa1c244fc285ff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.12.4 CPython/3.10.12
|
Release files / pylsp_inlay_hints-0.1.0-py3-none-any.whl
| Download URL | pylsp_inlay_hints-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eec7ef5c07e2fb40270afc70b92e96daca8923c3311e74f5b2c0c49fba64d6d3
|
|
BLAKE2b-256 checksum How to use checksums |
51cf5155b70ea9855590295e663a8adbbfaaf145d7583e4e10dffba0252347fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.12.4 CPython/3.10.12
|
Security for pylsp-inlay-hints 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.