A Single Notebook

A Single Notebook

The book class stores metadata and the list of pages.

EXAMPLES:

>>> sample_book   
Book title: Example Notebook
Uuid: 1fd6a485-33ed-4a45-a5a1-e06e55fdca57
Created ...
Last modified ...
class quill.book.Book(title, uuid, mtime, ctime, pages)[source]

Bases: object

Metadata for a notebook

EXAMPLES:

>>> type(sample_book)
<class 'quill.book.Book'>
ctime()[source]

Return the creation time of the notebook.

EXAMPLES:

>>> sample_book.ctime()
datetime.datetime(2012, 12, 9, 14, 57, 25)
ctime_millis()[source]

Return the creation time of the notebook in milliseconds.

Return type:integer

EXAMPLES:

>>> sample_book.ctime_millis()
1355064642000
get_page(n)[source]

Return the n-th page.

mtime()[source]

Return the last modification time of the notebook.

EXAMPLES:

>>> sample_book.mtime()
datetime.datetime(2012, 12, 9, 14, 57, 25)
mtime_millis()[source]

Return the last modification time of the notebook in milliseconds.

Return type:integer

EXAMPLES:

>>> sample_book.mtime_millis()
1355065045000
n_pages()[source]

Return the number of pages.

pretty_ctime()[source]
pretty_mtime()[source]
title()[source]

Return the title of the notebook.

Return type:string

EXAMPLES:

>>> sample_book.title()
'Example Notebook'
uuid()[source]

Return the UUID of the notebook.

Return type:string

EXAMPLES:

>>> sample_book.uuid()
'1fd6a485-33ed-4a45-a5a1-e06e55fdca57'

Previous topic

Programmers Guide

Next topic

Page of a Notebook

This Page