{"id":28424,"library":"types-python-jenkins","title":"types-python-jenkins","description":"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.","status":"active","version":"1.8.3.20260508","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["stubs","type-hints","jenkins","typeshed"],"install":[{"cmd":"pip install types-python-jenkins","lang":"bash","label":"Install stubs"}],"dependencies":[{"reason":"Runtime library being typed","package":"python-jenkins","optional":false}],"imports":[{"note":"The stubs are for the `jenkins` package; import from `jenkins`, not `python_jenkins`.","wrong":"from python_jenkins import Jenkins","symbol":"Jenkins","correct":"from jenkins import Jenkins"}],"quickstart":{"code":"from jenkins import Jenkins\n\nserver = Jenkins('http://jenkins.example.com', username='user', password=os.environ.get('JENKINS_PASSWORD', ''))\nprint(server.get_info())","lang":"python","description":"Basic usage of the Jenkins class. The stubs enable type checking for the `jenkins` library methods."},"warnings":[{"fix":"Check the stub coverage for the specific method you're using; file an issue on typeshed if missing.","message":"The stubs may not cover all methods or custom plugins. Use `# type: ignore` for uncovered methods.","severity":"gotcha","affected_versions":"*"},{"fix":"Install `types-python-jenkins` directly.","message":"The stubs are hosted under the `types-python-jenkins` package on PyPI; avoid using older `python-jenkins-stubs` if it existed.","severity":"deprecated","affected_versions":">=1.8.3"},{"fix":"Pin stub version or run type checking in CI to catch regressions.","message":"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.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Change import to `from jenkins import Jenkins`","cause":"Importing from the wrong package; the correct import is `from jenkins import ...`.","error":"ModuleNotFoundError: No module named 'python_jenkins'"},{"fix":"Run `pip install types-python-jenkins` and ensure your IDE's Python interpreter includes the stubs.","cause":"The stubs are not installed or the IDE is not using them.","error":"Cannot find reference 'Jenkins' in '__init__.py'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}