Skip to main content

pylsp-myplugin

Package description for PyPI

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-myplugin

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

... TODO ...

Features

This plugin adds the following features to pylsp:

  • ... TODO ...

Developing

Install development dependencies with (you might want to create a virtualenv first):

git clone https://github.com/python-lsp/pylsp-myplugin pylsp-myplugin
cd pylsp-myplugin
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.

Testing

Run pytest to run plugin tests.

Publishing

If this is your first time publishing to PyPI, follow the instruction at Twine docs to create an PyPI account and setup Twine.

  1. Update version number in setup.cfg.

  2. Build a package using setuptools:

python -m build
twine check dist/*
  1. Tag the release:
git tag --sign 0.1.3
git push origin 0.1.3
  1. Then upload using Twine:
twine upload --sign dist/*

Alternatively, you may want to upload to Test PyPI first before going live:

twine upload --repository testpypi dist/*

Credits

This package was created with Cookiecutter from python-lsp/cookiecutter-pylsp-plugin project template.

Metadata

Release files for pylsp-myplugin 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylsp-myplugin 0.1
File Size Uploaded Provenance Actions
pylsp-myplugin-0.1.tar.gz 5.4 kB Without provenance Details for pylsp-myplugin-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylsp-myplugin 0.1
File Interpreter ABI Platform Actions
pylsp_myplugin-0.1-py3-none-any.whl Python 3 none any Details for pylsp_myplugin-0.1-py3-none-any.whl

Total release size: 12.1 kB

Release files / pylsp-myplugin-0.1.tar.gz

Download URL pylsp-myplugin-0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
46860349b7ac04f51b6ba1faf3264aaf4e65140cd6f241e765139d7945362131
BLAKE2b-256 checksum
How to use checksums
59e398c3ff853c1c555c0ff55c946e97d0a1d6ddfee4d56ff7ae0c8788e41c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / pylsp_myplugin-0.1-py3-none-any.whl

Download URL pylsp_myplugin-0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1cf5503ac81f9585de72fbe8d480184b81dec15057912271a4803dc0d946a89
BLAKE2b-256 checksum
How to use checksums
4c5b1170c730a2504d9e45850b252c24297273f68107e574b500f8e15e22758e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for pylsp-myplugin 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page