Universal (sync/async) Python client for Jenkins
Project description
Python client for jenkins which supports both synс and async syntax with same API interfaces.
Comparison to other packages |
||
---|---|---|
Name |
sync |
async |
YES |
YES |
|
NO |
YES |
|
YES |
NO |
|
YES |
NO |
Installation
Latest release from PyPI
pip3 install ujenkins
Or latest developing version
pip3 install git+https://github.com/pbelskiy/ujenkins
Usage
Main advantage of this package is that same API interfaces used for sync and async syntax.
Get Jenkins version using sync client:
from ujenkins import JenkinsClient
def example():
client = JenkinsClient('http://server', 'user', 'password')
version = client.system.get_version()
print(version)
example()
With async client:
import asyncio
from ujenkins import AsyncJenkinsClient
async def example():
client = AsyncJenkinsClient('http://server', 'user', 'password')
version = await client.system.get_version()
print(version)
asyncio.run(example())
Documentation
Testing
Prerequisites: tox
Then just run tox, all dependencies and checks will run automatically
tox
Contributing
Any contributions are welcome!
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
ujenkins-0.3.6.tar.gz
(19.6 kB
view hashes)
Built Distribution
ujenkins-0.3.6-py3-none-any.whl
(26.4 kB
view hashes)