arche.readers.schema module¶
-
class
arche.readers.schema.
Tag
¶ Bases:
enum.Enum
An enumeration.
-
category
= (1,)¶
-
name_field
= (2,)¶
-
product_price_field
= (4,)¶
-
product_price_was_field
= (5,)¶
-
product_url_field
= (3,)¶
-
unique
= (0,)¶
-
-
class
arche.readers.schema.
Tags
¶ Bases:
object
-
get
(schema: Dict[str, Dict[str, Union[str, bool, int, float, None, List[T]]]]) → Dict[str, List[str]]¶
-
static
parse_tag
(value)¶
-
values
= {'category', 'name_field', 'product_price_field', 'product_price_was_field', 'product_url_field', 'unique'}¶
-
-
arche.readers.schema.
get_contents
(url: str)¶
-
arche.readers.schema.
get_schema
(schema_source: Union[str, Dict[str, Dict[str, Union[str, bool, int, float, None, List[T]]]], None])¶
-
arche.readers.schema.
get_schema_from_url
(path: str) → Dict[str, Dict[str, Union[str, bool, int, float, None, List[T]]]]¶