Registry / devops / clangd

clangd

JSON →
library22.1.1pypypi✓ verified 85d ago

Binary wheels for clangd, a clang-based C++ language server (LSP). Version 22.1.1 wraps clangd 22.1.1. Useful for integrating clangd into Python environments without manual binary installation.

pip install clangd
INSTALL
IMPORT
SIG · CLANGD
C
clangd
devopspythonv22.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

ClangdServer
import clangd
clangd does not export a separate class; the module itself provides access to the binary path.

Print clangd version via Python.

import clangd import subprocess print(clangd.__version__) subprocess.run([clangd.__path__[0] + '/bin/clangd', '--version'])
clangd --version
Debug
Known issues
gotchaclangd is a binary wheel; no Python API is provided. You must invoke the clangd binary using subprocess or similar.
fix
Use subprocess.run([clangd.__path__[0] + '/bin/clangd', '--version']) to verify.
affects: all
deprecatedVersions prior to 22.1.0 used a different packaging structure; importing clangd as a module might behave differently.
fix
Upgrade to >=22.1.0 via pip install --upgrade clangd.
affects: <22.1.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'clangd'
clangd is not installed or pip install failed because no binary wheel matches the platform.
fix
Check supported platforms: https://github.com/jmpfar/clangd-wheel/releases. Use pip install clangd and ensure a compatible Python version (3.6+).
AttributeError: module 'clangd' has no attribute 'ClangdServer'
clangd does not provide a Python class; it is a binary distribution.
fix
Access the binary via clangd.__path__[0] + '/bin/clangd' and call it with subprocess.
Upgrade
Version history
22.1.1latest on PyPI · released Mar 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
clangd — pip install clangd · libregistry