Python Language Server plugin for POP
Project description
python-lsp-server plugin for pop namespace compatibility
About
python-lsp-server is a python implementation of Microsoft’s Language Server Protocol. This plugin is designed to give functionality to the LSP server for python pop projects.
What is POP?
This project is built for pop, a Python-based implementation of Plugin Oriented Programming (POP). POP seeks to bring together concepts and wisdom from the history of computing in new ways to solve modern computing problems.
For more information:
Getting Started
Prerequisites
Python 3.6+
git (if installing from source, or contributing to the project)
Installation
If wanting to use pyls-pop, you can do so by either installing from PyPI or from source.
Install from PyPI
pip install pyls-pop
Install from source
# clone repo
git clone git@gitlab.com:saltstack/pop/pyls-pop.git
cd pyls-pop
# Setup venv
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Usage
For your convenience, here is where you can find more information on running python-lsp-server in popular IDEs
CLI
After installing pyls-pop, the pylsp command will be available (from the python-lsp-server project). Run with “–help” to see other options available while running this command.
pylsp
vim
Follow the instructions for installing the vim-lsp plugin. Then register the “pylsp” command as a language server. vim-lsp-settings can be used to automate some parts of the process.
PyCharm
Install the Language Server Protocol plugin from the IntelliJ marketplace. Navigate to Pycharm Settings > Language Server Protocol > Server Definitions. Add a new server definition of type “Executable” (The first drop-down menu in the server definition). For the “Extension” use “py”. Add the full path to the “pylsp” command you want to use. Ideally, a version of the command that is in the same python environment as the your source project’s source code.
VSCode
You might have to run pylsp with the “–tcp” and port flags. This is all we have at the moment on implementing in VSCode
Roadmap
Reference the open issues for a list of proposed features (and known issues).
Acknowledgements
Img Shields for making repository badges easy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyls-pop-0.1.0.tar.gz
.
File metadata
- Download URL: pyls-pop-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3784fb56f0f583233123b2fe9bf95fbcb4562ec9862e8ec2b2f7ed901c9772 |
|
MD5 | 2657e3151dbf5c28f1a88ae3b888ebfd |
|
BLAKE2b-256 | 1ca4ac53a7ccd6a92a43826a9ba92738438d652dedb9306f448074d7fda14617 |
File details
Details for the file pyls_pop-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyls_pop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b0619411ed8caa1515dc945a909779896b5b217a73dbcee610c1c852ffa5de |
|
MD5 | 0730a53cf5ad0ccd464a5500c2ff6cde |
|
BLAKE2b-256 | 4a5e2528c25a20d09c8a45f29eb842e48a8008bfc64d652d0c41bee14c0461e9 |