Skip to main content

2024 Python SDK for Jenkins

Project description

Jenkins Python SDK (jenkins_pysdk)

Documentation Status CodeQL PyPI - Downloads

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="DNS", username="<username>", passw="<passw>")

OR

from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(
    host="http://localhost:8080", 
    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.

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.

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.

MIT

This code is free to use, and I will not take ANY responsibility for any damage that you create yourself.

Contributors

KnownZero

Project details


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.3.9.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

jenkins_pysdk-1.3.9-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file jenkins_pysdk-1.3.9.tar.gz.

File metadata

  • Download URL: jenkins_pysdk-1.3.9.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for jenkins_pysdk-1.3.9.tar.gz
Algorithm Hash digest
SHA256 89321344118097a048630fa3b520bc72a02a8b73bf342db41fdb07e43b2af41f
MD5 ce38f83897c135f84d3b8bb5366feec4
BLAKE2b-256 49400775b0f7e06d8030ea03fa1de8286ae1b7504b73c0dc7387a96c45645628

See more details on using hashes here.

File details

Details for the file jenkins_pysdk-1.3.9-py3-none-any.whl.

File metadata

File hashes

Hashes for jenkins_pysdk-1.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 859099ee0f0d5c632982e383f3f836b33c9bab44d58a508b154379fff751a921
MD5 44b1a9f7b0f3e0fb7b01bae6cee42bca
BLAKE2b-256 1c9cb248590e81cdfc7e8fd86990f34ff6a5030d27db8780f3448f03053d47c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page