Kraken schema.org
Project description
Library to schema_org
How to use:
from kraken_schema_org import kraken_schema_org as k
normalize_type:
record_type = 'person'
normalized_type = k.normalize_type(record_type)
normalize_key:
key = 'givenname'
normalized_key = k.normalize_key(key)
normalize_record:
record = {"@type": "schema:WebPage", "schema:url": "https://www.test.com"}
normalized_record = k.normalize_record(record)
normalized_value = k.normalize_value(record_type: str, key: str, value: xx, strict: bool)
get_keys:
record_type = 'person'
keys = k.get_keys(record_type)
get_datatype():
record_type = 'schema:Person'
key = 'schema:givenName'
datatypes = k.get_datatype(record_type, key)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for kraken_schema_org-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd4ce90ab4908f99b8c89bb5349ad110ef19ea07d166ffc3740c5164c1a4e2c5 |
|
MD5 | 9e834b43eabc553f7074d5f636686a84 |
|
BLAKE2b-256 | a818a1e8d730254627e39df09cddb15797a734ca7f0ed397e234fdb858cd921e |