woob.capabilities.library

class Book(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Describes a book.

Variables:
  • url – (str) url

  • 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 Renew(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

A renew message.

Variables:
  • url – (str) url

  • message – (str) Message

class CapBook[source]

Bases: CapCollection

Library websites.

iter_resources(objs, split_path)[source]

Iter resources. It retuns iter_books().

iter_books()[source]

Iter books.

Return type:

iter[Book]

get_book(_id)[source]

Get a book from an ID.

Parameters:

_id (str) – ID of the book

Return type:

Book

iter_booked()[source]
renew_book(_id)[source]
iter_rented()[source]
search_books(_string)[source]