km-py.el
is a utility library that enhances the Python development experience in Emacs by integrating with several Python environment management systems such as Poetry
, Pipenv
, virtualenv
, and pip
.
It provides automatic configuration of Python LSP servers, virtual environment activation, and convenient shell-interaction functions, aiming to offer a seamless workflow for Python projects within Emacs.
Name | Version |
---|---|
Emacs | 29.1 |
project | 0.10.0 |
python | 0.28 |
eglot | 1.15 |
pyvenv | 1.21 |
poetry (optional) | 0.2.0 |
(use-package km-py
:demand t
:after (python)
:straight (km-py
:repo "KarimAziev/km-py"
:type git
:host github)
:commands (km-py-setup-enable)
:config (km-py-setup-enable))
Download the source code and put it wherever you like, e.g. into ~/.emacs.d/km-py/
git clone https://github.com/KarimAziev/km-py.git ~/.emacs.d/km-py/
Add the downloaded directory to the load path:
(add-to-list 'load-path "~/.emacs.d/km-py/")
(require 'km-py)
After installing or loading the library into your Emacs setup, you can enable the Python environment setup by calling km-py-setup-enable
.
To disable the setup and all advised commands, use km-py-setup-disable
.