2024 Python SDK for Jenkins
Project description
Jenkins Python SDK (jenkins_pysdk)
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="DNS", username="<username>", passw="<passw>")
OR
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(
host="http://localhost",
port=8080,
username="<username>",
token="<token>",
proxies={
"http": "http://",
"https": "https://"
},
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.
[!NOTE] I actively support this SDK, but I don't proactively check Jenkins release notes - if the SDK is missing something after an upgrade, please raise it in the discussions section.
[!IMPORTANT] Code is tested on:
- "2.121.3" # LTS (2018)
- "2.138.4" # LTS (2019)
- "2.150.3" # LTS (2019)
- "2.164.3" # LTS (2019)
- "2.176.4" # LTS (2019)
- "2.190.3" # LTS (2020)
- "2.204.6" # LTS (2020)
- "2.222.4" # LTS (2020)
- "2.235.5" # LTS (2021)
- "2.249.3" # LTS (2021)
- "2.263.4" # LTS (2021)
- "2.277.4" # LTS (2021)
- "2.289.3" # LTS (2021)
- "2.303.3" # LTS (2021)
- "2.319.1" # LTS (2022)
- "2.332.3" # LTS (2022)
- "2.346.3" # LTS (2022)
- "2.361.4" # LTS (2023)
- "2.375.3" # LTS (2023)
- "2.387.1" # LTS (2024)
Author
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
jenkins_pysdk-1.4.2.tar.gz
(38.4 kB
view details)
Built Distribution
File details
Details for the file jenkins_pysdk-1.4.2.tar.gz
.
File metadata
- Download URL: jenkins_pysdk-1.4.2.tar.gz
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df89d4f071eab69c2d9519992fa28e5cf200f5abff57c500d54854d1c63786ca |
|
MD5 | 7c148a250521bf140ad1846f6770bf0c |
|
BLAKE2b-256 | 2c1b23d8cf78dd682b2947aab7ca3caff5ea291b1ddda1aa62302504eccc58d3 |
File details
Details for the file jenkins_pysdk-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: jenkins_pysdk-1.4.2-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2461154562a1071fe29c57bdfb6d08f5b2f4ae02520b4d74374934216fd9298f |
|
MD5 | ea1663253427f852b5ac9c72b7313e21 |
|
BLAKE2b-256 | 6ba692a5b5d7b66e15623efe0ffb3ae080d67b0b6566b8d19853a77f04af5547 |