Skip to main content

Python Language Server plugin for POP

Project description

Made with pop, a Python implementation of Plugin Oriented Programming Made with Python

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyls-pop-0.1.0.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

pyls_pop-0.1.0-py3-none-any.whl (13.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page