Skip to content

mvyskocil/bslib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

about bslib

bslib is a light-weight library for accessing Open Build Service.

It is

  • small - but mainly because it implements just a few of things atm
  • well structured - provides low and high-level access
  • just a library (sooo unlike osc)
  • under very permissive MIT license
  • works in python3/python2

small howto

Most web-accessing functions expect BSContext instance in order to work. It contain apiurl, appropriate opener and in the future even logging capabilities. The easiest way how to create it is it's fromoscrc classmethod.

 import bslib
 import bslib.api

 ctx = bslib.BSContext.fromoscrc("https://api.opensuse.org")
 request = bslib.api.get_request(ctx, 123456, diff=True)

About

Small library for accessing open build service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages