Sheet Module¶
This module contains the main XML sheets of metadata. You can extend the App and Core classes in order to add new properties.
Classes
- class nometa.sheet.Sheet(raw: bytes)¶
- pack() bytes¶
Create the binary representation of etree._Element
- Returns:
etree._Element as bytes
- Return type:
bytes
- abstract to_element() None¶
persist changes in this instance to the etree._Element
- class nometa.sheet.App(raw: bytes)¶
- __init__(raw: bytes) None¶
Create an instance of App representing the docProps/app.xml sheet.
- Parameters:
raw (bytes) – the app.xml sheet as binary
- property app_version: str | None¶
The application version. eg. 14.0000
- property application: str | None¶
The description name of application
- property company: str | None¶
Company name
- property manager: str | None¶
Manager name
- property scale_crop: bool | None¶
Scale crop.
This element indicates the display mode of the document thumbnail. Set this element to TRUE to enable scaling of the document thumbnail to the display. Set this element to FALSE to enable cropping of the document thumbnail to show only sections that fits the display.
- property template: str | None¶
The document’s template. It’s a read-only property.
- to_element() None¶
persist changes in this instance to the etree._Element
- property total_time: int | None¶
The work time (measured in minutes).
- class nometa.sheet.Core(raw: bytes)¶
- __init__(raw: bytes) None¶
Create an instance of Core representing the docProps/core.xml sheet.
- Parameters:
raw (bytes) – the core.xml sheet as binary
- property category: str | None¶
The category
- property content_status: str | None¶
The content status, its value should be ‘Draft’, ‘Reviewed’ or ‘Final’.
- property created: datetime | None¶
When the document was created
- property creator: str | None¶
The creator/author
- property description: str | None¶
The description
- property identifier: str | None¶
The document’s identifier. Only some documents apply it
- property keywords: str | None¶
The keywords.
It is not compliance with CT_Keywords complex type specification. It’s a simplified implementation that doesn’t support multiple languages.
- property last_modified_by: str | None¶
The last person that modified the document
- property last_printed: datetime | None¶
When the document was printed
- property modified: datetime | None¶
When the document was modified
- property revision: int | None¶
The revision
- property subject: str | None¶
The subject
- property title: str | None¶
The title
- to_element() None¶
persist changes in this instance to the etree._Element
- property version: str | None¶
The version