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="<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.

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

Uploaded Source

Built Distribution

jenkins_pysdk-1.3.5-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jenkins_pysdk-1.3.5.tar.gz
  • Upload date:
  • Size: 32.7 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.5.tar.gz
Algorithm Hash digest
SHA256 c013f2d414080618de7d08d69b38682c9cb5c4988b4252097aabbc11a7c4d52e
MD5 d165dac347d721e1cc4b6c896ffd326f
BLAKE2b-256 f92a0f7517ee982cfb0dc4ca092fed00fd32f89643f6eb6884c1afbdedb02247

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jenkins_pysdk-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdb2dc1878e3c3fd94ccbdd32b0f07211a2ec73ca6e9e5a713094fea0af250c
MD5 25c03662d199b8596ae6acc6434889dd
BLAKE2b-256 d25695ed692d5d7f89c54160847c81182151e3d2a7018aab884e4839b3be9084

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