woob.capabilities.library

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

Bases: woob.capabilities.base.BaseObject

Describes a book.

Variables
  • name – (str) Name of the book

  • author – (str) Author of the book

  • location – (str) Location

  • date – (date, datetime) The due date

  • late – (bool) Are you late?

class woob.capabilities.library.CapBook

Bases: woob.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)
class woob.capabilities.library.Renew(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

A renew message.

Variables

message – (str) Message