core.util.webpub_manifest_parser.opds2 package¶
Submodules¶
core.util.webpub_manifest_parser.opds2.ast module¶
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2AcquisitionObject[source]¶
Bases:
Node
OPDS 2.0 acquisition information.
- child¶
Property containing an array of items.
- type¶
Property allowing only string values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2AvailabilityInformation[source]¶
Bases:
Node
OPDS 2.0 availability information.
- since¶
Property allowing date or date & time values.
- state¶
Property allowing only specific string values.
- until¶
Property allowing date or date & time values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2AvailabilityType(value)[source]¶
Bases:
Enum
Enumeration of different availability types.
- AVAILABLE = 'available'¶
- READY = 'ready'¶
- RESERVED = 'reserved'¶
- UNAVAILABLE = 'unavailable'¶
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2CopiesInformation[source]¶
Bases:
Node
OPDS 2.0 information about available copies.
- available¶
Property allowing only integer values.
- total¶
Property allowing only integer values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2Facet(role=None, links=None, metadata=None)[source]¶
Bases:
Collection
OPDS 2.0 facet.
- metadata¶
Property allowing only specific values of a specific Type.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2Feed(metadata=None, links=None, publications=None, navigation=None, groups=None)[source]¶
Bases:
Manifestlike
OPDS 2.0 feed.
- facets¶
Property allowing to contain a compact sub-collection.
- groups¶
Property allowing to contain a compact sub-collection.
- metadata¶
Property allowing only specific values of a specific Type.
Property allowing to contain a compact sub-collection.
- publications¶
Property allowing to contain a compact sub-collection.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2FeedMetadata(title=None, _type=None, subtitle=None, modified=None, description=None, items_per_page=None, current_page=None, number_of_items=None)[source]¶
Bases:
Node
OPDS 2.0 feed metadata.
- current_page¶
Property allowing only integer values.
- description¶
Property allowing only string values.
- identifier¶
Property allowing only URI values.
- items_per_page¶
Property allowing only integer values.
- modified¶
Property allowing only date & time values.
- number_of_items¶
Property allowing only integer values.
- subtitle¶
Property containing arbitrary values.
- title¶
Property containing arbitrary values.
- type¶
Property allowing only URI values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2Group(metadata=None, publications=None, navigation=None)[source]¶
Bases:
Collection
OPDS 2.0 group.
- metadata¶
Property allowing only specific values of a specific Type.
Property allowing to contain a compact sub-collection.
- publications¶
Property allowing to contain a compact sub-collection.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2HoldsInformation[source]¶
Bases:
Node
OPDS 2.0 holds information.
- position¶
Property allowing only integer values.
- total¶
Property allowing only integer values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2LinkProperties[source]¶
Bases:
LinkProperties
OPDS 2.0 link properties.
- availability¶
Property allowing only specific values of a specific Type.
- copies¶
Property allowing only specific values of a specific Type.
- holds¶
Property allowing only specific values of a specific Type.
- indirect_acquisition¶
Property containing an array of items.
- number_of_items¶
Property allowing only integer values.
- price¶
Property allowing only specific values of a specific Type.
Bases:
CompactCollection
OPDS 2 navigation for the catalog using links.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2Price[source]¶
Bases:
Node
OPDS 2.0 price information.
- currency¶
Property allowing only specific string values.
- value¶
Property allowing only float values.
- class core.util.webpub_manifest_parser.opds2.ast.OPDS2Publication(metadata=None, links=None, images=None)[source]¶
Bases:
Collection
OPDS 2.0 publication.
- images¶
Property allowing to contain a compact sub-collection.
- class core.util.webpub_manifest_parser.opds2.ast.TitleProperty(key, required, default_value=None)[source]¶
Bases:
ParsableProperty
Property containing arbitrary values.
- PARSER = <core.util.webpub_manifest_parser.core.parsers.AnyOfParser object>¶
core.util.webpub_manifest_parser.opds2.parsers module¶
- class core.util.webpub_manifest_parser.opds2.parsers.OPDS2DocumentParserFactory[source]¶
Bases:
DocumentParserFactory
Factory creating OPDS 2.0 parser.
core.util.webpub_manifest_parser.opds2.registry module¶
- class core.util.webpub_manifest_parser.opds2.registry.OPDS2CollectionRolesRegistry[source]¶
Bases:
RWPMCollectionRolesRegistry
Registry containing ODPS 2.0 collection roles.
- FACETS = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>¶
- GROUPS = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>¶
- IMAGES = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>¶
- NAVIGATION = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>¶
- OPDS_2_0_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>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>, <core.util.webpub_manifest_parser.core.registry.CollectionRole object>]¶
- PUBLICATIONS = <core.util.webpub_manifest_parser.core.registry.CollectionRole object>¶
- class core.util.webpub_manifest_parser.opds2.registry.OPDS2LinkRelationsRegistry[source]¶
Bases:
RWPMLinkRelationsRegistry
Registry containing OPDS 2.0 link relations.
- ACQUISITION = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- BORROW = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- BUY = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- CORE_LINK_RELATIONS = [<core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>, <core.util.webpub_manifest_parser.core.registry.LinkRelation object>]¶
- OPEN_ACCESS = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- PREVIEW = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- SAMPLE = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- SUBSCRIBE = <core.util.webpub_manifest_parser.core.registry.LinkRelation object>¶
- class core.util.webpub_manifest_parser.opds2.registry.OPDS2MediaTypesRegistry[source]¶
Bases:
RWPMMediaTypesRegistry
Registry containing OPDS 2.0 media types.
- OPDS_FEED = <core.util.webpub_manifest_parser.core.registry.MediaType object>¶
- OPDS_MEDIA_TYPES = [<core.util.webpub_manifest_parser.core.registry.MediaType object>, <core.util.webpub_manifest_parser.core.registry.MediaType object>]¶
- OPDS_PUBLICATION = <core.util.webpub_manifest_parser.core.registry.MediaType object>¶
core.util.webpub_manifest_parser.opds2.semantic module¶
- class core.util.webpub_manifest_parser.opds2.semantic.OPDS2SemanticAnalyzer(media_types_registry, link_relations_registry, collection_roles_registry)[source]¶
Bases:
SemanticAnalyzer
OPDS 2.0 semantic analyzer.
- visit¶
Dispatch methods based on type signature
- See Also:
Dispatcher
core.util.webpub_manifest_parser.opds2.syntax module¶
- class core.util.webpub_manifest_parser.opds2.syntax.OPDS2SyntaxAnalyzer[source]¶
Bases:
SyntaxAnalyzer
OPDS 2.0 syntax analyzer.