There are two python packages exist for jenkins remote access API, I need help to compare those two packages, so I can judge which to use.
So far for my thoughts:
python-jenkins is quite simple interface and is part of new Ubuntu release, which means easy to use, mature enough for general usage.
JenkinsAPI is mentioned in Jenkins official document, it looks new, but it is more connected with jenkins API development as well.
What I needed so far:
I want to stick with python API in high level module, if possible, avoid to use python-requests module
Any more ideas ?
EDIT refine the questions after the comments below
Python Jenkins is a python wrapper for the Jenkins REST API which aims to provide a more conventionally pythonic way of controlling a Jenkins server. It provides a higher-level API containing a number of convenience functions. We like to use python-jenkins to automate our Jenkins servers.
The jenkins-rest library is an object oriented Java project that provides access to the Jenkins REST API programmatically to some remote API Jenkins provides. It is built using the jclouds toolkit and can easily be extended to support more REST endpoints.
Given that both seem to have more or less the basic features and that JenkinsAPI is
I would go for jenkinsapi.
As for token support, given the documentation, the fact that the code uses token in place of passwords for the API and is backward compatible with basic auth, I would say that any client that supports passwords will support tokens.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With