This project aims to provide a minimalistic and transparent client for accessing the OpenBuildService API.
This is a very basic example:
from osctiny import Osc
osc = Osc(
url="https://api.opensuse.org",
username="foobar",
password="helloworld",
)
# This returns an LXML object
osc.requests.get(request_id=1)
# This returns an LXML object
osc.search.request(xpath="state/@name='new'")
For more documentation see https://osc-tiny.readthedocs.io/en/latest/
Any contributions are welcome.