Registry / neovim

neovim

JSON →
library0.3.1pypypi✓ verified 84d ago

The Python client for Neovim, providing a programming interface to control Neovim from Python. This package ('neovim') is a transitional package for 'pynvim' (version 0.3.1) and is deprecated; users should use the 'pynvim' package (current version 0.6.0) instead. The project has an active maintenance and release cadence of roughly once a year.

pip install pynvim
INSTALL
IMPORT
SIG · NEOVIM
N
neovim
pythonv0.3.1
Install
2.5s avg
Import
247ms
Disk
48MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.266s · 76MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.5s · import 0.227s · 24MB
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pynvim
from pynvim import attach
import neovim
'import neovim' still works as an alias but is deprecated; use 'import pynvim' for new code.
Nvim
from pynvim import Nvim

Connect to Neovim via Unix socket and evaluate a VimL expression.

import pynvim nvim = pynvim.attach('socket', path='/tmp/nvim.sock') print(nvim.eval('$VIMRUNTIME'))
pynvim --version
Debug
Known issues
breaking'neovim' package on PyPI is deprecated/transitional. The actual library has been renamed to 'pynvim' since version 0.3.1. Continue using 'import neovim' works as an alias but may break in future.
fix
Uninstall both 'neovim' and 'pynvim', then install 'pynvim': pip uninstall neovim pynvim && pip install pynvim
affects: 0.3.1 and above
gotchaPython 3.6 support dropped in pynvim 0.5.0. Minimum Python 3.7 required.
fix
Upgrade to Python 3.7+ or use pynvim < 0.5.0
affects: pynvim >= 0.5.0
gotcha'pip install --upgrade neovim' may fail due to pip conflicts. Safest upgrade path: uninstall both 'neovim' and 'pynvim', then reinstall 'pynvim'.
fix
pip uninstall neovim pynvim && pip install pynvim
affects: all
Errors
Common errors & fixes
ImportError: No module named neovim
The 'neovim' package is transitional and may not be installed if you installed 'pynvim' instead. Or vice versa.
fix
Install pynvim: pip install pynvim
AttributeError: module 'pynvim' has no attribute 'attach'
Installed an old version of pynvim (pre-0.4.0) or possibly installed the wrong package.
fix
Ensure you have pynvim >= 0.4.0: pip install --upgrade pynvim
Upgrade
Version history
0.3.1latest on PyPI · released Nov 17, 2018
Audit
Dependencies
pynvimrequiredthe 'neovim' package is a transitional package that installs pynvim
Agent activity
4 hits · last 30 days
node
4
Resources
neovim — pip install neovim · libregistry