pylsp-refactor
Refactoring tools for Python LSP Server
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-refactor
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.
Features
This plugin adds the following features to pylsp:
Code Action:
- introduce variable
Usage
Introduce variable
When CodeAction is triggered and the cursor is on a line where function call or class instantiation is presented. Makes a new variable from a function call or class instantiation and tries to guess a name for it if possible.
Additionally, it moves newly created variable out of block if it's happening somewhere inside dict initialization or class instantiation
Configuration
pylsp.plugins.pylsp_refactor.enabledistrueby default, you can change it to false to disable plugin completely
Caveat
This plugin is in early development, so expect some bugs. Please report in Issue tracker if you had any issues with the plugin
Developing
See CONTRIBUTING.md
Credits
This package was created with Cookiecutter from python-lsp/cookiecutter-pylsp-plugin project template.
Metadata
Release files for pylsp-refactor 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_refactor-0.1.0.tar.gz | 5.5 kB | Without provenance | Details for pylsp_refactor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylsp_refactor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pylsp_refactor-0.1.0-py3-none-any.whl |
Total release size: 13.5 kB
Release files / pylsp_refactor-0.1.0.tar.gz
| Download URL | pylsp_refactor-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6819b1b9f132de7480a2a71ca31cc502842d5d65b31bcbebcb5b2927d3ee8c5
|
|
BLAKE2b-256 checksum How to use checksums |
b3d14dbc72e29b68a035ec68722be58345906f07907a0fe7fbce0c9a3a0a697a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Linux/5.15.153.1-microsoft-standard-WSL2
|
Release files / pylsp_refactor-0.1.0-py3-none-any.whl
| Download URL | pylsp_refactor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd635698cd248c95f5fbbfc2c11fa2411abb94b7b93e96a935444be767547000
|
|
BLAKE2b-256 checksum How to use checksums |
92e6d5fe5c12e9fbcf6668af8152bcc5a6188dd37c64f02e6511c60d51881b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.7 Linux/5.15.153.1-microsoft-standard-WSL2
|
Security for pylsp-refactor 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.