types-python-jenkins
raw JSON → 1.8.3.20260508 verified Sat May 09 auth: no python
Third-party typing stubs for python-jenkins, provided by typeshed. Version 1.8.3.20260508, compatible with Python >=3.10. Stubs are updated periodically; release cadence follows typeshed updates.
pip install types-python-jenkins Common errors
error ModuleNotFoundError: No module named 'python_jenkins' ↓
cause Importing from the wrong package; the correct import is `from jenkins import ...`.
fix
Change import to
from jenkins import Jenkins error Cannot find reference 'Jenkins' in '__init__.py' ↓
cause The stubs are not installed or the IDE is not using them.
fix
Run
pip install types-python-jenkins and ensure your IDE's Python interpreter includes the stubs. Warnings
gotcha The stubs may not cover all methods or custom plugins. Use `# type: ignore` for uncovered methods. ↓
fix Check the stub coverage for the specific method you're using; file an issue on typeshed if missing.
deprecated The stubs are hosted under the `types-python-jenkins` package on PyPI; avoid using older `python-jenkins-stubs` if it existed. ↓
fix Install `types-python-jenkins` directly.
breaking Stub versions are not synchronized with python-jenkins releases. A stub update might add new type annotations that could reveal type errors in existing code. ↓
fix Pin stub version or run type checking in CI to catch regressions.
Imports
- Jenkins wrong
from python_jenkins import Jenkinscorrectfrom jenkins import Jenkins
Quickstart
from jenkins import Jenkins
server = Jenkins('http://jenkins.example.com', username='user', password=os.environ.get('JENKINS_PASSWORD', ''))
print(server.get_info())