weboob.capabilities.library

class weboob.capabilities.library.Book(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Describes a book.
Variables:
  • name – (unicode) Name of the book
  • author – (unicode) Author of the book
  • location – (unicode) Location
  • date – (date, datetime) The due date
  • late – (bool) Are you late?
class weboob.capabilities.library.Renew(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

A renew message.
Variables:message – (unicode) Message
class weboob.capabilities.library.CapBook

Bases: weboob.capabilities.collection.CapCollection

Library websites.

get_book(_id)

Get a book from an ID.

Parameters:_id (str) – ID of the book
Return type:Book
iter_booked()
iter_books()

Iter books.

Return type:iter[Book]
iter_rented()
iter_resources(objs, split_path)

Iter resources. It retuns iter_books().

renew_book(_id)
search_books(_string)