core.util.webpub_manifest_parser.rwpm package

Submodules

core.util.webpub_manifest_parser.rwpm.ast module

class core.util.webpub_manifest_parser.rwpm.ast.RWPMManifest(metadata=None, links=None, reading_order=None, context=None, resources=None, toc=None)[source]

Bases: Manifestlike

Readium Web Publication Manifest.

DEFAULT_CONTEXT = 'https://readium.org/webpub-manifest/context.jsonld'
context

Property allowing either a string or array of strings as its values.

reading_order

Property allowing to contain a compact sub-collection.

resources

Property allowing to contain a compact sub-collection.

toc

Property allowing to contain a compact sub-collection.

core.util.webpub_manifest_parser.rwpm.parser module

class core.util.webpub_manifest_parser.rwpm.parser.RWPMDocumentParserFactory[source]

Bases: DocumentParserFactory

Factory creating RWPM parsers.

create()[source]

Create a new RWPMParser.

Returns:

RWPM parser instance

Return type:

Parser

core.util.webpub_manifest_parser.rwpm.registry module

class core.util.webpub_manifest_parser.rwpm.registry.RWPMCollectionRolesRegistry[source]

Bases: Registry

Registry containing collection roles defined in the RWPM spec.

CORE_ROLES = [<core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>]
EXTENSIONS = [<core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>]
GUIDED = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
LANDMARKS = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
LOA = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
LOI = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
LOT = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
LOV = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
PAGE_LIST = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
READING_ORDER = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
RESOURCES = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
TOC = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>
class core.util.webpub_manifest_parser.rwpm.registry.RWPMLinkRelationsRegistry[source]

Bases: Registry

Registry containing link relations mentioned in the RWPM spec.

ALTERNATE = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
CONTENTS = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
COVER = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
MANIFEST = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
SEARCH = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
SELF = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>
class core.util.webpub_manifest_parser.rwpm.registry.RWPMMediaTypesRegistry[source]

Bases: Registry

Registry containing media types mentioned in the RWPM spec.

CORE_TYPES = [<core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>]
CSS = <core.util.webpub_manifest_parser.core.registry.MediaType object>
EPUB_PUBLICATION_PACKAGE = <core.util.webpub_manifest_parser.core.registry.MediaType object>
GIF = <core.util.webpub_manifest_parser.core.registry.MediaType object>
HTML = <core.util.webpub_manifest_parser.core.registry.MediaType object>
JPEG = <core.util.webpub_manifest_parser.core.registry.MediaType object>
MANIFEST = <core.util.webpub_manifest_parser.core.registry.MediaType object>
PNG = <core.util.webpub_manifest_parser.core.registry.MediaType object>
SVG = <core.util.webpub_manifest_parser.core.registry.MediaType object>
SVG_XML = <core.util.webpub_manifest_parser.core.registry.MediaType object>
WEBP = <core.util.webpub_manifest_parser.core.registry.MediaType object>
WEB_PUBLICATION_PACKAGE = <core.util.webpub_manifest_parser.core.registry.MediaType object>

core.util.webpub_manifest_parser.rwpm.semantic module

class core.util.webpub_manifest_parser.rwpm.semantic.RWPMSemanticAnalyzer(media_types_registry, link_relations_registry, collection_roles_registry)[source]

Bases: SemanticAnalyzer

RWPM semantic analyzer.

visit

Dispatch methods based on type signature

See Also:

Dispatcher

core.util.webpub_manifest_parser.rwpm.syntax module

class core.util.webpub_manifest_parser.rwpm.syntax.RWPMSyntaxAnalyzer[source]

Bases: SyntaxAnalyzer

Syntax analyzer for RWPM grammar.

Module contents