2024 Python SDK for Jenkins
Project description
Jenkins Python SDK (jenkins_pysdk)
Supported for python 3.6+
Installation
Use the package manager pip and JenkinsPythonSDK | pypi.org to install jenkins-pysdk.
pip install jenkins-pysdk
Quick Usage
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(host="<host>", username="<username>", passw="<passw>")
OR
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(
host="<host>",
username="<username>",
token="<token>",
proxy={},
timeout=60
)
Why is the token parameter different?
Using an API token removes the need for Crumbs in your requests.
Of course, the SDK handles crumbs for you, but it will reduce the number of requests.
See [JenkinsPythonSDK Docs] for full documentation.
Contributing
Feel free to create pull requests.
For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT License
Copyright (c) 2024 KnownZero
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This code is free to use, and I will not take ANY responsibility for any damage that you create yourself.
Contributors
KnownZero
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jenkins_pysdk-1.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6611053efb34f3ab280501efebcf7a143a7a95d779314dd6876a102694fe1f5b |
|
MD5 | 921c9707064749c3da5f4f0d04a236a5 |
|
BLAKE2b-256 | 5a58b43894141de999ce093e5bcc628cddcec2517a482f0977d626f332ef46b3 |