pyls-spyder-0.4.0
توضیحات
Spyder extensions for the python-lsp-server
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | pyls-spyder-0.4.0 |
| نام | pyls-spyder |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Spyder Project Contributors |
| ایمیل نویسنده | spyder.python@gmail.com |
| آدرس صفحه اصلی | https://github.com/spyder-ide/pyls-spyder |
| آدرس اینترنتی | https://pypi.org/project/pyls-spyder/ |
| مجوز | MIT |
# pyls-spyder
[](https://raw.githubusercontent.com/spyder-ide/pyls-spyder/master/LICENSE)
[](https://pypi.org/project/pyls-spyder/)
[](https://www.anaconda.com/download/)
[](https://www.anaconda.com/download/)
[](https://pepy.tech/project/pyls-spyder)
[](https://github.com/spyder-ide/pyls-spyder)

*Copyright © 2020– Spyder Project Contributors*
## Overview
Spyder extensions for the [python-lsp-server](https://github.com/python-lsp/python-lsp-server) (pylsp). This package provides Spyder-specific extras for the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/specifications/specification-current/) (LSP) on Python, such as document symbol searching and others.
## Installing
To install pyls-spyder, you can use both conda or pip package managers:
```bash
# Using conda (Recommended)
conda install pyls-spyder -c spyder-ide
# Using pip
pip install pyls-spyder
```
## Dependencies
This package depends on the [python-lsp-server](https://github.com/python-lsp/python-lsp-server) to integrate the Spyder-specific extensions.
## Installing locally
To install and develop spyder-pyls locally, you will need to install the python-lsp-server:
```bash
# Using conda
conda install python-lsp-server
# Using pip
pip install python-lsp-server
```
Then, you can install the package locally using pip:
```bash
pip install -U -e .
```
## Running tests
We use pytest to run tests as it follows:
```bash
pytest -x -v pyls_spyder/tests
```
## Extended LSP calls
| LSP method | Spyder extensions |
|:-----------------------------:|:------------------------------------------------:|
| `textDocument/documentSymbol` | Find code cells `# %%` and block comments `# --` |
| `textDocument/foldingRange` | Return code cells `# %%` as code folding regions |
## Plugin configuration options
This plugin can be configured by using the key `pyls_spyder` when calling `workspace/didChangeConfiguration` on the pyls. Each configuration option is described below:
<table>
<thead>
<tr>
<th>LSP method</th>
<th>Configuration Key</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan=2><code>textDocument/documentSymbol</code></td>
<td><code>group_cells</code></td>
<td><code>bool</code></td>
<td>Enable/Disable code cell grouping according to the total number of leading percentages</td>
</tr>
<tr>
<td><code>enable_block_comments</code></td>
<td><code>bool</code></td>
<td>Enable/disable block comment detection</td>
</tr>
</tbody>
</table>
## Changelog
Please see our [CHANGELOG](https://github.com/spyder-ide/pyls-spyder/blob/master/CHANGELOG.md) file to learn more about our new features and improvements.
## Contribution guidelines
We follow PEP8 and PEP257 for all Python modules. We use MyPy type annotations for all functions and classes declared on this package. Feel free to send a PR or create an issue if you have any problem/question.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.1 | python-lsp-server |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >= 3.6 | Python |
نحوه نصب
نصب پکیج whl pyls-spyder-0.4.0:
pip install pyls-spyder-0.4.0.whl
نصب پکیج tar.gz pyls-spyder-0.4.0:
pip install pyls-spyder-0.4.0.tar.gz