core.util.webpub_manifest_parser package¶
Subpackages¶
- core.util.webpub_manifest_parser.core package
- Submodules
- core.util.webpub_manifest_parser.core.ast module
- core.util.webpub_manifest_parser.core.errors module
- core.util.webpub_manifest_parser.core.parsers module
- core.util.webpub_manifest_parser.core.properties module
- core.util.webpub_manifest_parser.core.registry module
- core.util.webpub_manifest_parser.core.semantic module
- core.util.webpub_manifest_parser.core.syntax module
- Module contents
- core.util.webpub_manifest_parser.epub package
- core.util.webpub_manifest_parser.opds2 package
- core.util.webpub_manifest_parser.rwpm package
Submodules¶
core.util.webpub_manifest_parser.errors module¶
core.util.webpub_manifest_parser.utils module¶
- core.util.webpub_manifest_parser.utils.all_unique(_list)[source]¶
Return a boolean value indicating whether the list contains only unique items.
- Returns:
Boolean value indicating whether the list contains only unique items
- Return type:
bool
- core.util.webpub_manifest_parser.utils.cast(value, klass)[source]¶
Casts the value to the specified class.
- Parameters:
value (object) – Value to be casted
klass (Type) – Target class
- Returns:
Value casted to the specified class
- Return type:
object
- core.util.webpub_manifest_parser.utils.encode(value)[source]¶
Encode the string value using UTF-8 encoding.
- Parameters:
value (Any) – Value to be encoded
- Returns:
Encoded string value or the initial value if it has a non-string type
- Return type:
Any