Universal (sync/async) Python client for Jenkins
Project description
Python client for jenkins which supports both synс and async syntax with same API interfaces.
Documentation
Installation
pip3 install ujenkins
Comparison to other packages
Name |
sync |
async |
---|---|---|
YES |
YES |
|
NO |
YES |
|
YES |
NO |
|
YES |
NO |
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', 'login', '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', 'login', 'password')
version = await client.system.get_version()
print(version)
asyncio.run(example())
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.2.tar.gz
(17.5 kB
view hashes)
Built Distribution
ujenkins-0.3.2-py3-none-any.whl
(22.9 kB
view hashes)