Open Data Schema Python client
Project description
Open Data Schema Python client
Install
pip install opendataschema
Usage
Note: the schema.json
file can be given as a file path or an URL.
opendataschema schema.json list
opendataschema schema.json show
opendataschema schema.json show --name <schema_name>
opendataschema schema.json show --versions
Python API
TODO Example:
tsc = SchemaCatalog("https://opendataschema.frama.io/catalog/schema-catalog.json")
for tsr in tsc.get_schema_references():
if tsr.has_git_nature():
version_list =
for ver in tsr.get_git_versions():
url = tsr.get_schema_url(version)
ts = TableSchema(url)
print(ts.get_properties())
else:
url = tsr.get_schema_url()
ts = TableSchema(url)
print(ts.get_properties())
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
opendataschema-0.2.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for opendataschema-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141660f1ebbfa499716b20e57e7aa4895e3c413df97598c743c965a346b22c64 |
|
MD5 | a3a2c51d95b7789c6656cb504e717812 |
|
BLAKE2b-256 | e30179563bda2af361a1029e32cecaf2db8626443d7d86ca6eaae33410440dbc |